Professional Documents
Culture Documents
(Printf Return (0) ) : Int Main
(Printf Return (0) ) : Int Main
int main()
{
printf();
return(0);
}
(a)Run-Time Error
(b)Compile-Time Error
(c)No Output
(d)None of these
[Q021] What will be the output of the following program [NOTE : ASSUME 2 values are
entered by the user are stored in the variables 'val' & 'num' respectively] :
int main()
{
int val=5,num;
printf("%d",scanf("%d %d",&val,&num));
return(0);
}
(a)1
(b)2
(c)5
(d)None of these