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

What functions are in conio h?

890


What are the advantages of using new operator as compared to the function malloc ()?

1064


Write the syntax and purpose of a switch statement in C.

850


One of the Institutes contains 5 student groups. Every group contains 4 students. Institute wants to store student group’s details in array. Group should contain group member’s details (name and registration number and age), project name, and mark of the group.

2420


Why enum is used in c?

706


What is volatile variable in c?

860


What are c preprocessors?

917


What is a MAC Address?

826


Can two or more operators such as and be combined in a single line of program code?

1115


process by which one bit patten in to another by bit wise operation is? (a) masking, (b) pruning, (c) biting, (d) chopping,

2159


write a program to create a sparse matrix using dynamic memory allocation.

4620


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

1176


List the difference between a "copy constructor" and a "assignment operator"?

776


Explain what are run-time errors?

824


Explain the advantages of using macro in c language?

764