main()

{

int i=400,j=300;

printf("%d..%d");

}

Answers were Sorted based on User's Feedback



main() { int i=400,j=300; printf("%d..%d"); }..

Answer / susie

Answer :

400..300

Explanation:

printf takes the values of the first two assignments of the
program. Any number of printf's may be given. All of them
take only the first two values. If more number of
assignments given in the program,then printf will take
garbage values.

Is This Answer Correct ?    2 Yes 2 No

main() { int i=400,j=300; printf("%d..%d"); }..

Answer / kanth

Answer:
garbage value..garbage value.

explanation: Here we are not giving any variables to print
statement, hence it prints two garbage values.

Is This Answer Correct ?    1 Yes 1 No

main() { int i=400,j=300; printf("%d..%d"); }..

Answer / gayathri

0..0

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More C Code Interview Questions

#ifdef something int some=0; #endif main() { int thing = 0; printf("%d %d\n", some ,thing); }

1 Answers  


#define a 10 int main() { printf("%d..",a); foo(); printf("%d..",a); return 0; } void foo() { #undef a #define a 50 }

3 Answers  


Write a function to find the depth of a binary tree.

13 Answers   Adobe, Amazon, EFI, Imagination Technologies,


void main() { printf(“sizeof (void *) = %d \n“, sizeof( void *)); printf(“sizeof (int *) = %d \n”, sizeof(int *)); printf(“sizeof (double *) = %d \n”, sizeof(double *)); printf(“sizeof(struct unknown *) = %d \n”, sizeof(struct unknown *)); }

1 Answers  


main() { int i = 3; for (;i++=0;) printf(“%d”,i); }

1 Answers   CSC,






Write a program to check whether the number is prime and also check if it there i n fibonacci series, then return true otherwise return false

1 Answers   Cognizant, lenovo,


How we will connect multiple client ? (without using fork,thread)

3 Answers   TelDNA,


Give a very good method to count the number of ones in a 32 bit number. (caution: looping through testing each bit is not a solution)

7 Answers   Microsoft,


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

0 Answers  


main(int argc, char **argv) { printf("enter the character"); getchar(); sum(argv[1],argv[2]); } sum(num1,num2) int num1,num2; { return num1+num2; }

1 Answers  


code of a program in c language that ask a number and print its decremented and incremented number.. sample output: input number : 3 321123

1 Answers   HCL,


/*what is the output for*/ void main() { int r; printf("Naveen"); r=printf(); getch(); }

4 Answers  


Categories