what is the answer for it
main()
{
int i;
clrscr();
printf("%d",&i)+1;
scanf("%d",i)-1;
}

Answers were Sorted based on User's Feedback



what is the answer for it main() { int i; clrscr(); printf("%d",&i)+1; scanf(&qu..

Answer / hari

it will print a garbage value..

for further queries and discussions, just check these out !!!

http://forum.campusmaniac.com/
http://www.campusmaniac.com/

Is This Answer Correct ?    2 Yes 1 No

what is the answer for it main() { int i; clrscr(); printf("%d",&i)+1; scanf(&qu..

Answer / saurabh shukla

it will print the memory adress of i

Is This Answer Correct ?    1 Yes 0 No

what is the answer for it main() { int i; clrscr(); printf("%d",&i)+1; scanf(&qu..

Answer / deepshree sinha

any garbage value of i because the value of i is not
initialised.

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More C Interview Questions

What are valid operations on pointers?

0 Answers  


write a program to swap bits in a character and return the value prototype of function char fun (char a, charb flag c) where fun returns a char, char a is a the value char b is the bit to be changed and flag c is the bit value for eg: x=fun(45,7,0) since 45 is 0010 0101 and ow x should contain the value 65 (0110 0101)

1 Answers   Bosch, College School Exams Tests,


12344321 123 321 12 21 1 1 how i print this program??

5 Answers   DSR Management, Winit,


can u give me the good and very optimised code for a car racing game?

0 Answers  


prog for 1st five prime numbers in 2^x - 1

0 Answers  






Explain what is gets() function?

0 Answers  


Explain Linker and Loader

5 Answers  


Whats wrong with the following function char *string() { char *text[20]; strcpy(text,"Hello world"); return text; }

3 Answers   Qualcomm,


can we implement multi-threads in c.

0 Answers  


How do you sort filenames in a directory?

0 Answers  


What is Your Name :)

1 Answers  


10. Study the code: void show() main() { show(); } void show (char *s) { printf("%sn",s); } What will happen if it is compiled & run on an ANSI C Compiler? A)It will compile & nothing will be printed when it is executed B)it will compile but not link C)the compiler will generate an error D)the compiler will generate a warning

5 Answers   Accenture,


Categories