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

Write a procedure to implement highlight as a blinking operation

2 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  


Write a program to print a square of size 5 by using the character S.

6 Answers   Microsoft,


main() { int i=10; void pascal f(int,int,int); f(i++,i++,i++); printf(" %d",i); } void pascal f(integer :i,integer:j,integer :k) { write(i,j,k); }

1 Answers  


Write a program to receive an integer and find its octal equivalent?

7 Answers  






#include<stdio.h> main() { int i=1,j=2; switch(i) { case 1: printf("GOOD"); break; case j: printf("BAD"); break; } }

1 Answers  


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.

0 Answers  


main() { int k=1; printf("%d==1 is ""%s",k,k==1?"TRUE":"FALSE"); }

1 Answers  


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

1 Answers  


union u { union u { int i; int j; }a[10]; int b[10]; }u; main() { printf("\n%d", sizeof(u)); printf(" %d", sizeof(u.a)); // printf("%d", sizeof(u.a[4].i)); } a. 4, 4, 4 b. 40, 4, 4 c. 1, 100, 1 d. 40 400 4

3 Answers   HCL,


void main() { int *mptr, *cptr; mptr = (int*)malloc(sizeof(int)); printf(ā€œ%dā€,*mptr); int *cptr = (int*)calloc(sizeof(int),1); printf(ā€œ%dā€,*cptr); }

1 Answers  


void main() { int i=5; printf("%d",i++ + ++i); }

3 Answers  


Categories