#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


Please Help Members By Posting Answers For Below Questions

Can we declare variable anywhere in c?

526


How can I find the modification date and time of a file?

592


What is variable declaration and definition in c?

491


#include main() { enum _tag{ left=10, right, front=100, back}; printf("left is %d, right is %d, front is %d, back is %d",left,right,front,back); }

704


What does printf does?

729






Write a program of advanced Fibonacci series.

696


PLS U SENS ME INTERVIEW O. MY EMAIL ADD, SOFIYA.SINGH@GMAIL.COM

1692


How many identifiers are there in c?

567


What is enumerated data type in c?

612


When should you not use a type cast?

649


write a c program to print the next of a particular no without using the arithmetic operator or looping statements?

3167


Explain how can I pad a string to a known length?

634


What is structure in c language?

608


How can I prevent another program from modifying part of a file that I am modifying?

604


The number of bytes of storage occupied by short, int and long are a) 2, 2 and 4 b) 2, 4 and 4 c) 4, 4 and 4 d) none

753