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

Answer Posted / dally

It will print hello with length of 5.Because return value of
printf is length of that string.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many parameters should a function have?

761


writ a program to compare using strcmp VIVA and viva with its output.

1644


What is the size of structure in c?

791


What is a pragma?

760


A text file that contains declarations used by a group of functions,programs,or users a) executable file b) header file c) obj file d) .cfile

743






Differentiate between static and dynamic modeling.

717


What are the 3 types of structures?

666


An application package has been provided to you without any documents for the following application. The application needs to be tested. How will you proceed?

793


What is getche() function?

705


Explain the use of keyword 'register' with respect to variables.

701


Which type of language is c?

740


When was c language developed?

799


What is oops c?

728


Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal. [ I gave the obvious solution of taking % 10 and / 10, which gives us the decimal value in reverse order. This requires an array since we need to print it out in the correct order. The interviewer wasn't too pleased and asked me to give a solution which didn't need the array ].

745


What does the c in ctime mean?

654