what is the output for the code :
main()
{
int i,j;
printf("%d %d ",scanf("%d%d",&i,&j));
}

Answers were Sorted based on User's Feedback



what is the output for the code : main() { int i,j; printf("%d %d ",scanf("%d%d&q..

Answer / anitha

0 0

Is This Answer Correct ?    1 Yes 4 No

what is the output for the code : main() { int i,j; printf("%d %d ",scanf("%d%d&q..

Answer / hari

without entering the values the output will not be
displayed.
no output

Is This Answer Correct ?    0 Yes 3 No

what is the output for the code : main() { int i,j; printf("%d %d ",scanf("%d%d&q..

Answer / shahzad

first variable is used to print the no of inputs and
remaining r used to print the values from the last
i.e.third second first.........so on..

Is This Answer Correct ?    0 Yes 4 No

what is the output for the code : main() { int i,j; printf("%d %d ",scanf("%d%d&q..

Answer / anonymous

If u give the input as
1
2
then the output wil be
2
2

Is This Answer Correct ?    0 Yes 4 No

what is the output for the code : main() { int i,j; printf("%d %d ",scanf("%d%d&q..

Answer / monish

The user will enter two nos. The output will be- 2 <First
no. entered>

Is This Answer Correct ?    3 Yes 8 No

what is the output for the code : main() { int i,j; printf("%d %d ",scanf("%d%d&q..

Answer / vantees

First of all, we need to give two integer number as input.Since scanf return the no of arguments passed to it, except format specifier.So out is: 2,unknown value

Is This Answer Correct ?    2 Yes 7 No

what is the output for the code : main() { int i,j; printf("%d %d ",scanf("%d%d&q..

Answer / satish kondapalli

2 2

Is This Answer Correct ?    1 Yes 6 No

what is the output for the code : main() { int i,j; printf("%d %d ",scanf("%d%d&q..

Answer / nitin sharma

ans 1 2

Is This Answer Correct ?    0 Yes 7 No

what is the output for the code : main() { int i,j; printf("%d %d ",scanf("%d%d&q..

Answer / sundar

what input to give that number can display

Is This Answer Correct ?    0 Yes 7 No

what is the output for the code : main() { int i,j; printf("%d %d ",scanf("%d%d&q..

Answer / rampoojan gupta

no out put

Is This Answer Correct ?    1 Yes 11 No

Post New Answer

More C Interview Questions

long int size a) 4 bytes b) 2 bytes c) compiler dependent d) 8 bytes

18 Answers   Acropolis, HCL, Intel, TCS,


Can i use Two or More Main Funtion in any C program.?

4 Answers  


program to find middle element of linklist?

1 Answers   Huawei,


fn f(x) { if(x<=0) return; else f(x-1)+x; }

5 Answers   HCL,


What are structure types in C?

0 Answers  


Is a house a mass structure?

0 Answers  


Write a C Programm.. we press 'a' , it shows the albhabetical number is 1, if we press 'g' it shows the answer 7.. any can help me

7 Answers  


What are bit fields? What is their use?

2 Answers   Adobe,


What is typedef?

1 Answers  


What is pointer to pointer in c with example?

0 Answers  


the maximum length of a character constant can be a) 1 character b) 8 characters c) 256 chaacters d) 125 characters

0 Answers  


Is return a keyword in c?

0 Answers  


Categories