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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

please send me the code for multiplying sparse matrix using c

1946


What does sizeof function do?

888


What is 'bus error'?

878


Explain what does a function declared as pascal do differently?

932


What does the && operator do in a program code?

962


Why void is used in c?

779


Which is better oop or procedural?

824


How can I send mail from within a c program?

801


WRITE A PROGRAM TO MERGE TWO SORTED ARRAY USING MERGE SORT TECHNIQUE..

1827


How is null defined in c?

879


What are the 4 types of programming language?

787


What is string in c language?

839


What are the benefits of c language?

899


What is the g value paradox?

866


what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;

2162