printf("%d",(printf("Hello")); What it returns?

Answer Posted / amit shrivastava

it will show hello5
hello from the inner printf and 5 value return by the outer
printf function,as printf return int value of the string
and in the example there is 5 wrds so the lenght is 5 which
it return.

Is This Answer Correct ?    10 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How variables are declared in c?

557


i want to know the procedure of qualcomm for getting a job through offcampus

1918


What is #define used for in c?

601


What are the difference between a free-standing and a hosted environment?

726


What is pass by value in c?

585






Explain the use of #pragma exit?

684


The statement, int(*x[]) () what does in indicate?

632


What does %p mean?

578


What is a pragma?

658


Are c and c++ the same?

619


Which type of language is c?

634


What does nil mean in c?

665


main(){char *str;scanf("%s",str);printf("%s",str); }The error in the above program is: a) Variable 'str' is not initialised b) Format control for a string is not %s c) Parameter to scanf is passed by value. It should be an address d) none

712


provide an example of the Group by clause, when would you use this clause

1690


what is bit rate & baud rate? plz give wave forms

1503