#include<stdio.h> void main() { int a=10,b=20,c=30;
printf("%d",scanf("%d%d%d",&a,&b,&c)); }
what is the output for this?
Answer Posted / sorab
IT will print 3 becoz in the inner statement of printf()you have scanf() statement .scanf() will take the 3 inputs from user and after that it will return 3 to printf()and 3 display on screen
printf("%d",scanf("%d%d%d%d",&a&b&c));
it will display 4 on screen ...
| Is This Answer Correct ? | 6 Yes | 3 No |
Post New Answer View All Answers
Explain a file operation in C with an example.
Is there a way to have non-constant case labels (i.e. Ranges or arbitrary expressions)?
What is keyword in c?
What is a good way to implement complex numbers in c?
Tell us two differences between new () and malloc ()?
What is a string?
What is calloc in c?
What are void pointers in c?
Calculate the weighted average of a list of n numbers using the formula xavg = f1x1+f2x2+ ….+ fnxn where the f’s are fractional weighting factors, i.e., 0<=fi<1, and f1+f2+….+fn = 1
What is a good data structure to use for storing lines of text?
How can I read a binary data file properly?
How to draw the flowchart for structure programs?
write a program which the o/p should b in such a way that s triangle if I/p is 3,a Square/rectangle if I/P=4,a pentagon if I/P=5 and so on...forget about the I/P which is less than 3
Explain the advantages and disadvantages of macros.
Why do we use pointer to pointer in c?