#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
Describe dynamic data structure in c programming language?
What is data structure in c programming?
Describe the difference between = and == symbols in c programming?
What is the difference between new and malloc functions?
explain what is an endless loop?
Is printf a keyword?
A collection of data with a given structure for excepting storing and providing on demand data for multiple users a) linked list b) datastructer c) database d) preprocessor
Is there sort function in c?
Why & is used in scanf in c?
How pointers are declared?
write a program that declares an array of 30 elements named "income" in the main functions. then cal and pass the array to a programmer-defined function named "getIncome" within the "getIncome" function, ask the user for annual income of 30 employees. then calculate and print total income on the screen using the following function: "void getIncome ( ai []);
What are the complete rules for header file searching?
What is the use of structure padding in c?
What is clrscr in c?
Can we replace the struct function in tree syntax with a union?