/*what is the output for the code*/
void main()
{
int r;
r=printf("naveen");
r=printf();
printf("%d",r);
getch();
}



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

Answer / amegha

r=printf() sttmnt will produce an error as - too few
parameters in printf().
It needs any argument value.

r=printf("naveen") returns the no of characters printed.
here 6.

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More C Interview Questions

application of static variables in real time

1 Answers   Bosch,


What are the similarities between c and c++?

0 Answers  


name the language for writing c compiler?

3 Answers   Microsoft,


what is link list?

3 Answers  


4) Write a program that takes a 5 digit number and calculates 2 power that number and prints it.

5 Answers  


code for concatination of 2 strings with out using library functions?

3 Answers  


What is the difference between c &c++?

0 Answers  


What is a null pointer assignment error? What are bus errors, memory faults, and core dumps?

0 Answers   Aspire, Infogain,


Explain setjmp()?

0 Answers  


What is the exact difference between '\0' and ""

3 Answers  


which is conditional construct a) if statement b) switch statement c) while/for d) goto

0 Answers  


What is volatile in c language?

2 Answers   HCL, TCS,


Categories