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

Why is it important to memset a variable, immediately after allocating memory to it ?

1791


Explain main function in c?

868


Explain continue keyword in c

796


How would you use the functions fseek(), freed(), fwrite() and ftell()?

934


Draw a flowchart to produce a printed list of all the students over the age of 20 in a class .The input records contains the name and age of students. Assume a sentinel value of 99 for the age field of the trailer record

5002


Explain what is the difference between text files and binary files?

879


How can I write a function analogous to scanf?

908


Define circular linked list.

805


What is pointer in c?

965


What are actual arguments?

867


What is the explanation for prototype function in c?

770


What does %p mean c?

837


What is use of #include in c?

846


Write a program to print all permutations of a given string.

957


Can the “if” function be used in comparing strings?

801