/*what is the output for*/
void main()
{
int r;
printf("Naveen");
r=printf();
getch();
}

Answers were Sorted based on User's Feedback



/*what is the output for*/ void main() { int r; printf("Naveen"); r=printf(); getc..

Answer / sudhanshu_kmr

compile error......

Is This Answer Correct ?    9 Yes 3 No

/*what is the output for*/ void main() { int r; printf("Naveen"); r=printf(); getc..

Answer / sudarson

Too few arquments to function ---->printf()

Is This Answer Correct ?    4 Yes 1 No

/*what is the output for*/ void main() { int r; printf("Naveen"); r=printf(); getc..

Answer / prathiba

its a compile time error.bcoz r is of integer type.

Is This Answer Correct ?    7 Yes 5 No

/*what is the output for*/ void main() { int r; printf("Naveen"); r=printf(); getc..

Answer / srikanth

compile time error..r is of type integer,so the could is wrong

Is This Answer Correct ?    3 Yes 1 No

Post New Answer

More C Code Interview Questions

#ifdef something int some=0; #endif main() { int thing = 0; printf("%d %d\n", some ,thing); }

1 Answers  


write a origram swaoing valu without 3rd variable

2 Answers  


writte a c-programm to display smill paces

2 Answers  


posted by surbhi just now main() { float a = 5.375; char *p; int i; p=(char*)&a; for(i=0;i<=3;i++) printf("%02x",(unsigned char) p[i]); } how is the output of this program is :: 0000ac40 please let me know y this output has come

2 Answers   GATE,


main() { char *p; printf("%d %d ",sizeof(*p),sizeof(p)); }

6 Answers  






How do you create a really large matrix (i.e. 3500x3500) in C without having the program crash? I can only reach up to 2500. It must have something to do with lack of memory. Please help!

1 Answers  


#include<stdio.h> int main() { int x=2,y; y=++x*x++*++x; printf("%d",y); } Output for this program is 64. can you explain how this output is come??

1 Answers  


In a gymnastic competition, scoring is based on the average of all scores given by the judges excluding the maximum and minimum scores. Let the user input the number of judges, after that, input the scores from the judges. Output the average score. Note: In case, more than two judges give the same score and it happens that score is the maximum or minimum then just eliminate two scores. For example, if the number of judges is 5 and all of them give 10 points each. Then the maximum and minimum score is 10. So the computation would be 10+10+10, this time. The output should be 10 because 30/3 is 10.

0 Answers   TCS,


How do you verify if the two sentences/phrases input is an anagram using predefined functions in string.h and by using arrays?

0 Answers  


Given an array of characters which form a sentence of words, give an efficient algorithm to reverse the order of the words (not characters) in it.

9 Answers   Microsoft,


void ( * abc( int, void ( *def) () ) ) ();

1 Answers  


Sorting entire link list using selection sort and insertion sort and calculating their time complexity

1 Answers   Infosys, Microsoft, NetApp,


Categories