#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
Is using exit() the same as using return?
Which is best book for data structures in c?
What is array in c with example?
Is it possible to have a function as a parameter in another function?
Explain pointer. What are function pointers in C?
How to write a program for machine which is connected with server for that server automatically wants to catch the time for user of that machine?
What are the key features in c programming language?
Which type of language is c?
code for find determinent of amatrix
What is the difference between int main and void main?
how to construct a simulator keeping the logical boolean gates in c
Can we declare variables anywhere in c?
What is function prototype?
how many errors in c explain deply
What is spaghetti programming?