main()

{

int i, j;

scanf("%d %d"+scanf("%d %d", &i, &j));

printf("%d %d", i, j);

}

a. Runtime error.

b. 0, 0

c. Compile error

d. the first two values entered by the user

Answers were Sorted based on User's Feedback



main() { int i, j; scanf("%d %d"+scanf("%d %d", &i, &..

Answer / guest

d) two values entered, 3rd will be null pointer assignment

Is This Answer Correct ?    3 Yes 2 No

main() { int i, j; scanf("%d %d"+scanf("%d %d", &i, &..

Answer / sowmith

compile time error

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Code Interview Questions

main() { int i = 258; int *iPtr = &i; printf("%d %d", *((char*)iPtr), *((char*)iPtr+1) ); }

1 Answers  


Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal.

6 Answers   Fusion Systems GmbH,


How to count a sum, when the numbers are read from stdin and stored into a structure?

1 Answers  


main() { int i; clrscr(); printf("%d", &i)+1; scanf("%d", i)-1; } a. Runtime error. b. Runtime error. Access violation. c. Compile error. Illegal syntax d. None of the above

1 Answers   HCL,


#include<stdio.h> #include<conio.h> void main() { int a=(1,2,3,(1,2,3,4); switch(a) { printf("ans:"); case 1: printf("1");break; case 2: printf("2");break; case 3: printf("1");break; case 4: printf("4");break; printf("end"); } getch(); }

0 Answers  






how to create a 3x3 two dimensional array that will give you the sums on the left and bottom columns

0 Answers  


1 o 1 1 0 1 0 1 0 1 1 0 1 0 1 how to design this function format in c-language ?

2 Answers  


given integer number,write a program that displays the number as follows: First line :all digits second line : all except the first digit . . . . Last line : the last digit

8 Answers  


main() { int i=10; i=!i>14; Printf ("i=%d",i); }

1 Answers  


What is your nationality?

1 Answers   GoDB Tech,


programming in c lanugaue programm will errror error with two header file one as stdio.h and other one is conio.h

1 Answers  


main() { printf("\nab"); printf("\bsi"); printf("\rha"); }

3 Answers  


Categories