what is the return type of printf
Answers were Sorted based on User's Feedback
Answer / venkat
RETURN TYPE OF THE PRINTF IS NO.OF CHAACTERS SUCCESSFULLY
PRINTED/DISPLAYED
| Is This Answer Correct ? | 17 Yes | 1 No |
Answer / naresh
Return type of the printf is the no of characters printed.
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / sateesh
The return type of Printf in C is Integer i.e the number of
characters printed.
| Is This Answer Correct ? | 1 Yes | 1 No |
in case any function return float value we must declare a) the function must be declared as 'float' in main() as well b) the function automatically returned float values c) function before declared 'float' keyword d) all the above
What will be the result of the following C language program? main() { int a = 0; int b = 20; char x = 1; char y = 10; if(a,b,x,y) printf("Welcome"); }
Write a function stroverlap that takes (at least) two strings, and concatenates them, but does not duplicate any overlap. You only need to worry about overlaps between the end of the first string and the beginning of the second string. Examples: batman, manonthemoon = batmanonthemoon batmmamaman, mamamanonthemoon = batmmamamanonthemoon bat, man = batman batman, batman = batman batman, menonthemoon = batmanmenonthemoon
What is dynamic dispatch in c++?
How can we see the Expanded source code and compiled code for our source program in C?
why use functions a) writing functions avoids rewriting the same code over and over b) using functions it becomes easier to write programs and keep track of what they are doing c) a & b d) none of the above
main() { int a=5; printf(?%d,%d,%d\n?,a,a< <2,a>>2); } Answer: 5,20,1 please explain this code in detail
program to find out date after adding 31 days to a date in the month of febraury also consider the leap year
Is c compiled or interpreted?
is compiler do read the data line by line or not. ??
6 Answers LG Soft, Satyam, Tech Mahindra,
What is return type in c?
What are the types of assignment statements?