Friday, 20 December 2013
Print Hello world with out using semi colon in c programming language
Print hello world without using semicolon in c. See how can you do this in c language. in last post we show how to develop a Text To Speech Converter in Java , but we know most of our users much comfortable with c programming language. So lets start exploring c , in this post you will learn very deeply , i bet you will get very useful information regarding c , so enjoy our step by step approach :
Step 1 -
Do You Know -
do you know about printf function properly. NO , actually you dont know , that when you write printf("Hello")
it return an integer value (number of letters) but mostly we don't store it.
Correct syntax : int printf(String str,---)
it returns length of String inside printf function
So for Example - when you write
printf("Hello"); // it return 5
you can store it as -
num = printf("Hello")
and value of num will be 5
Step 2 -
Do You Know -
for if(n) , value of n any thing other than 0 considered as true in c so if there is written as if(11) then it is true in case of c.
Example :
if(11)
printf(" I am in if block");
else
printf(" I am in else block");
Output - I am in if block
Surprised , don‘t worry see next step.
Step 3 - (Final)
Now by using above two steps we can write code now. Code with out semicolon
void main() {
if(printf("Hello World")){ }
if(getch()){ }
}
Output - Hello World
Do You Know -
getch() function waits for users inputs and returns ascii so again if function got true condition.
Like our facebook page for regular updates , Comment for any query !
Sunday, 1 December 2013
Tuesday, 26 November 2013
Thursday, 21 November 2013
5 Simple Tips to Ace Your MBA Interview
Master in Business administration
is a career in vogue. With expanding number of conglomerates and increasing
number of multinationals, proclivity ofaspirants to work with them seems to
surge. MBA degree makes it most obvious.
Students studying with premium
MBA colleges of the nation as in IIM’s, XLRI, Symbiosis and NarseeMonjeetend
to bag better job opportunities due to sound professional education that shape
up raw in to refined. But before gaining an entrance in these reputed colleges,
aspirants need to undergo common test and ought to encounter face to face interview
session.
It has been commonly found that
many students having potential show excelling results in the common test (MAT,
CAT and GMAT exams) but fail during across the table session. There are many
reasons to it.Numerous flunk but few succeed too and ace their interviews. Read
on below to have a look on some effective tips :
Wednesday, 20 November 2013
Java program to zip any folder
Wednesday, 13 November 2013
CSC-PAPER HYDERABAD
1. C# is a native language of:
A.Java B. .Net C.Visual Basic
2. What is IMP in Objective C
A.Implementation pointer B.Important Pointer C.Intended Pointer
3. The width in bits of double primitive type in Java is --. Select the one correct answer.
1. The width of double is platform dependent 2. 64 3. 128 4. 8 5. 4
Sunday, 10 November 2013
Monday, 28 October 2013
Shortcut Trick to find out rank of word or word of any rank with repeat
Topic -
Math Trick to find out rank of any word ,Math Trick to find out word of any rank with repeating letter.
Post -
We know very large number of students facing problem to find out rank of any word or word of any rank when letters are repeating, so here is the solution very easy to use just learn and deploy.
Example :
If you understand our tutorial for nor non-repeating , then its very easy for you.
See - Rank of word INDIA in dictionary ?
So start same as we done previously. just start-
Step1 - do numbering over all letters.
4 3 2 1 0 <== diraction
I N D I A
Step 2 :
Move left to right and put n for each letter .
Step1 - do numbering over all letters.
4 3 2 1 0 <== diraction
I N D I A
Step 2 :
Move left to right and put n for each letter .
4 3 2 1 0 <== diraction
I N D I A
n n n n n ==> diraction
I N D I A
n n n n n ==> diraction
n defines as number of letter smaller than that letter in right hand side. ( refer previous post for better understanding ).
Note- an additional k factor to be added here for repeating letters .
1) if letter repeat in right side then k= 1/( r! ) where r is number of that letter
2) otherwise k=1 .
So in this case
1) For I , ( A , D ) is smaller in right hand side so n=2 , k=1/(2!) (I is repeating in right side and r=2)
2) For N , (A,D,I) smaller in right hand side so n=3 , k=1 (letter non-repeating in right side)
3) For D , (A) is smaller in right hand side so n=1 , k=1 (letter non-repeating in right side)
4) For I , (A) is smaller in right hand side so n=1 , k=0 ( no any letter repeating in right)
and so on .....
you can do this very fastly by manual work like
factorial 4 3 2 1 0 <== diraction
word I N D I A
n=> 2 3 1 1 0 ==> diraction
k=> 1/(2!) 1 1 1 1
Now calculate ==>[ sum ( ( factorial ! ) x n x k)] + 1 (INDIA itself) ( ie. multiply column's but 1st row used as factorial)
So
Rank = [( 4!) x 2 x 1/2! + ( 3!) x 3 x 1+ ( 2!) x 1 x 1 + ( 1!) x 1 x 1] + 1 = 24 + 18 + 2 +1+ 1 = 46
word I N D I A
n=> 2 3 1 1 0 ==> diraction
k=> 1/(2!) 1 1 1 1
Now calculate ==>[ sum ( ( factorial ! ) x n x k)] + 1 (INDIA itself) ( ie. multiply column's but 1st row used as factorial)
So
Rank = [( 4!) x 2 x 1/2! + ( 3!) x 3 x 1
Rank of word "INDIA" = 46
Hope you enjoyed this post , comment for any problem.
Sunday, 27 October 2013
Trick to find out rank of word or word of any rank
Topic -
Math Trick to find out rank of any word ,Math Trick to find out word of any rank.
Post -
We know very large number of students facing problem to find out rank of any word or word of any rank , so here is the solution very easy to use just learn and deploy.
Example :
55th word of SHUVANK in dictionary ?
(1) AHNKSUV
(2) AHSNKUV
(3) AHNKUSV
(4) AHNKUVS
(4) AHNKUVS
Sunday, 20 October 2013
Tcs verbal ability question answer link
For ease of our users we put all links of verbal test here , as we added more link will also added here , these are sample question answer's of this year question you may expect some of these in your exam , you can refer these and prepare well.
These are tcs verbal ability questions with sample answers.
Posted by Editorial Team
on 05:36
in
Csc paper,
Tcs,
Tcs Placement Paper,
Tcs verbal ability question
Friday, 18 October 2013
Tcs verbal question answer sample set 10
Posted by Editorial Team
on 09:16
in
Csc paper,
Tcs,
Tcs Placement Paper,
Tcs verbal ability question
Thursday, 17 October 2013
Tcs verbal question answer sample set 9
Posted by Editorial Team
on 00:44
in
Csc paper,
Tcs,
Tcs Placement Paper,
Tcs verbal ability question
Tcs verbal question answer sample set 8
Posted by Editorial Team
on 00:39
in
Csc paper,
Tcs,
Tcs Placement Paper,
Tcs verbal ability question
Tcs verbal question answer sample set 7
Set 7 :
Using the following phrases, write an email with a minimum of 70 words and a maximum of 100 words to your parents describing the experience related to your first campus interview. 80 minutes - tensed - formal shirt - negative marking - polish - write a program - early in the morning - written test - four member panel - explain - offer - very happy.
By - Nitesh
Dear Dad
We just now had campus Interview. The written test was of 80 minutes and we all were tensed about it. We wore formal shirt and there were negative marking in exam. We polished our shoes in morning and were ready to write a program early in the morning. The written test was cleared and for Interview we had four member panel. They explain the offer to TCS very clearly and we all were very happy after coming out of the Interview. Regards, Raja |
Posted by Editorial Team
on 00:31
in
Csc paper,
Tcs,
Tcs Placement Paper,
Tcs verbal ability question
Wednesday, 16 October 2013
Tcs verbal question answer sample set 6
Posted by Editorial Team
on 07:49
in
Csc paper,
Tcs,
Tcs Placement Paper,
Tcs verbal ability question
Tcs verbal question answer sample set 5
Posted by Editorial Team
on 07:35
in
Csc paper,
Tcs,
Tcs Placement Paper,
Tcs verbal ability question
Tcs verbal question answer sample set 4
Monday, 14 October 2013
Tcs verbal question answer sample set 3
Set 3 :
Using the following phrases, write an email with minimum of 70 words to your colleague and congratulate him on the success of his grand project. congratulations - good job well done , nice work very problem , working hard , very easy , keep it up.
By - Adarsh
Dear Amar,
Heard today of your success on the grand project.Congratulations you did a very good job!You have been working hard for a very long time on this project and finally you did a nice work.I know it was not very easy for you to keep on the project after the accident you met but you stood against all odds,Well done.Keep it up my friend.Hope to hear many such news in the recent future. Regards, Adarsh Singh |
Friday, 11 October 2013
How stop images from dragging
How to avoid any image from dragging effect ? very easy just use these methods as given bellow -
Method 1 -
Suppose your image code is :
<img src="11.png" alt="11.png" title="11.png">
Add draggable attribue and your code will be -
<img draggable="false" src="11.png" alt="11.png" title="11.png">
( Not working use 2nd method )
Thursday, 10 October 2013
Tcs verbal question answer sample set 2
Set 2 :
Using the following phrases, write an email with minimum of 70 words to the customer Mr. Gill Roy explain.Explain delay to the project. Payment processing system - Schedule - 10th May (Friday) - Unexpected power outage - 3 days - Overall delay - 7 days - includes recovery of lost work - will not recur.
By - Manasa
Dear Gill
we're very sorry to inform you that our project 'Payment Processing System' was scheduled on 10th May (Friday) but due to unexpected power outage of 3 days we've been delayed. Overall delay will be 7 days which includes the duration required for the recovery of lost work for which we don't even have back-up. We're extremely sorry for the delay and inconvenience caused and assure you that this will not recur in the future. Thanks and Regards Manasa V |
Posted by Editorial Team
on 00:16
in
Csc paper,
Tcs,
Tcs Placement Paper,
tcs placement paper 2013,
Tcs verbal ability question
Subscribe to:
Posts (Atom)