#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

Is using exit() the same as using return?

960


Which is best book for data structures in c?

850


What is array in c with example?

901


Is it possible to have a function as a parameter in another function?

869


Explain pointer. What are function pointers in C?

858


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?

1876


What are the key features in c programming language?

842


Which type of language is c?

859


code for find determinent of amatrix

1757


What is the difference between int main and void main?

823


how to construct a simulator keeping the logical boolean gates in c

2023


Can we declare variables anywhere in c?

793


What is function prototype?

821


how many errors in c explain deply

1864


What is spaghetti programming?

911