what is the output of the below program & why ?
#include<stdio.h>
void main()
{
int a=10,b=20,c=30;
printf("%d",scanf("%d%d%d",&a,&b,&c));
}

Answer Posted / kalyani

The answer is 3 because scanf returns no of arguments

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Design an implement of the inputs functions for event mode

2967


To Write a C program to remove the repeated characters in the entered expression or in entered characters(i.e) removing duplicates. String contains only lowercase characters ['a'-'z']

502


can you use proc sql to manpulate a data set or would u prefer to use proc report ? if so why ? make up an example and explain in detail

2335


Cluster head selection in Wireless Sensor Network using C programming language.

3114


Hi, i have a project that the teacher want a pyramid of numbers in C# or java...when we click a button...the pyramid should be generated in a listbox/or JtextArea...and the pyramid should have the folowing form: 1 232 34543 4567654 567898765 67890109876 7890123210987 890123454321098 90123456765432109 0123456789876543210 Plz help with codes...didn't find anything on the net.

2690






Write a program to model an exploding firecracker in the xy plane using a particle system

3695


why do you use macros? Explain a situation where you had to incorporate macros in your proc report? use a simple instream data example with code ?

2265


How to palindrom string in c language?

8871


create a C-code that will display the total fare of a passenger of a taxi if the driver press enter,the timer will stop. Every 10 counts is 2 pesos. Initial value is 25.00

6315


What is the difference between proc means and proc tabulate ? explain with a simple example when you have to use means or tabulate?

3716


What is full form of PEPSI

1869


Write a routine to implement the polymarker function

4386


Given a spherical surface, write bump-mapping procedure to generate the bumpy surface of an orange

2865


Write a Program in 'C' To Insert a Unique Number Only. (Hint: Just Like a Primary Key Numbers In Database.) Please Some One Suggest Me a Better Solution for This question ??

1780


Sir... please give some important coding questions asked by product companies..

1805