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 / khaja

it prints bcoz no i,j values are mentioned.

Is This Answer Correct ?    0 Yes 2 No

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

Answer / muthu

It prints only garbage value, since the variables x and y
were not metioned out side the bracket

Is This Answer Correct ?    0 Yes 3 No

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

Answer / suresh reddy

Answer:

400 300

printf takes first two intilization values as default

Is This Answer Correct ?    2 Yes 9 No

Post New Answer

More C Interview Questions

can anyone please tell about the nested interrupts?

0 Answers  


Describe the order of precedence with regards to operators in C.

0 Answers  


main() { FILE *fs; char c[10]; fs = fopen(“source.txt”, ”r”); /* source.txt exists and contains “Vector Institute” */ fseek(fs,0,SEEK_END); fseek(fs,-3L,SEEK_CUR); fgets(c,5,fs); puts(c); }

1 Answers   Vector,


What will be result of the following program? void myalloc(char *x, int n) { x= (char *)malloc(n*sizeof(char)); memset(x,\0,n*sizeof(char)); } main() { char *g="String"; myalloc(g,20); strcpy(g,"Oldstring"); printf("The string is %s",g); } a) The string is : String b) Run time error/Core dump c) The string is : Oldstring d) Syntax error during compilation e) None of these

3 Answers   IBM,


what is difference between C and C++

4 Answers  






Write a program that receives as input a number omaadel-n-print, four digits.

0 Answers  


how can you print&scan anything using just one character? :) HINT: printf,scanf similer

2 Answers  


There are N egg baskets and the number of eggs in each basket is a known quantity. Two players take turns to remove these eggs from the baskets. On each turn, a player must remove at least one egg, and may remove any number of eggs provided they all belong to the same basket. The player picking the last egg(s) wins the game. If you are allowed to decide who is going to start first, what mathematical function would you use to decide so that you end up on the winning side?

8 Answers   Google,


Is there a way to have non-constant case labels (i.e. Ranges or arbitrary expressions)?

0 Answers  


what is compiler

6 Answers  


Why main is used in c?

0 Answers  


write a program to swap two variables a=5 , b= 10 without using third variable

5 Answers  


Categories