GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Placement Papers  >  Wipro  >  Technical
Go To First  |  Previous Question  |  Next Question 
 Technical  |  Question 8 of 157    Print  
What is the output of the program?
int n=f,m;
n==m++;
m==++n;
printf(n, m);


  
Total Answers and Comments: 15 Last Update: September 26, 2006   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
  Sorting Options  
  Page 1 of 2   « First    1    2    >     Last »  
August 12, 2005 03:37:51   #1  
devansh        

RE: What is the output of the program? int n=f,m; n==m++; m==++n; printf(n, m);
ans(f f)
 
Is this answer useful? Yes | No
August 28, 2005 08:15:37   #2  
HAI        

RE: What is the output of the program? int n=f,m; n==m++; m==++n; printf(n, m);
M F+1
 
Is this answer useful? Yes | No
September 04, 2005 05:37:53   #3  
raj        

RE: What is the output of the program? int n=f,m; n==m++; m==++n; printf(n, m);
m m+1
 
Is this answer useful? Yes | No
December 06, 2005 23:29:48   #4  
Srinivas        

RE: What is the output of the program?int n=f,m...

I don't think the compiler would compile this without errors. What is f and what value would m take? that is just random.

And n m++ is not assignment too. Its just logical comparison.

Please correct me if i am wrong.

Thanks


 
Is this answer useful? Yes | No
December 24, 2005 09:01:04   #5  
gourav        

RE: What is the output of the program?int n=f,m...

hi

n m++ is not an assingment but it is a logical comparision.

int n f m;

int n m++; // in this statement m is incremented to m+1//

int m ++n; // in this statement n is incremented to f+1//

print(n m);

ans: (f+1 m+1)


 
Is this answer useful? Yes | No
December 26, 2005 06:14:27   #6  
sachin        

RE: What is the output of the program?int n=f,m...

Hi

Here f should ' f ' o/w compiler will give error as it will be considered as a variable........ it will assign the ASCII value of 'f ' to n i.e. 102 ......... then the values of m and n will be incremented by 1 so the output should be ................ 103 1


 
Is this answer useful? Yes | No
February 14, 2006 09:02:15   #7  
ANISH        

RE: What is the output of the program?
int n=f,m;
n==m++;
m==++n;
printf(n, m);


n m++.......so the ascii value of m will increment and it will become n so now n nnext step is m ++n. similarly here ascii value of n will increment .soans is m om o n n
 
Is this answer useful? Yes | No
March 07, 2006 06:35:02   #8  
teju        

RE: What is the output of the program?int n=f,m...

i guess there are many problems in the question above first that f is not declared b4 and is directly assigned to n

and nxt the printf statement is given as print so we may come acrooss these two prob and hence this may not work


 
Is this answer useful? Yes | No
June 07, 2006 00:29:53   #9  
Shyamsundar        

RE: What is the output of the program?int n=f,m...
the progrm will not run bcoz compilation error occurs @ undefined symbl 'f'.
 
Is this answer useful? Yes | No
June 18, 2006 12:24:14   #10  
purani        

RE: What is the output of the program?int n=f,m...

first of all we cannot assign two value to the same variable as given n f m

the error occurs there itself so it results in compilation error


 
Is this answer useful? Yes | No
  Page 1 of 2   « First    1    2    >     Last »  


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape