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

to write a program, that finds the minimum total number of shelves, including the initial one, required for this loading process. The packets are named A, B, C, D, E …….. Any numbers of packets with these names could be kept in the shelf, as in this example: [ZZLLAAJKRDFDDUUGGYFYYKK]. All packets are to be loaded on cars. The cars are lined in order, so that the packets could be loaded on them. The cars are also named [A, B, C, D, E,………….].

2 Answers   Infosys, TCS,


what is develop in c language

2 Answers  


why i join syntel?

23 Answers   ABC, Syntel, TCS,


Is it better to use a macro or a function?

0 Answers  


How do we swap or interchange any 2 numbers without using Temporary variable...Anybody can pls answer it.. Thanks in Advance

8 Answers  






Explain spaghetti programming?

0 Answers  


i need all types of question paper releted to "c" and other language.

0 Answers  


How would you find a cycle in a linked list?

3 Answers   NSN,


what is disadvantage of pointer in C

13 Answers   Tech Mahindra,


consider the following C code main() { int i=3,x; while(i>0) { x=func(i); i--; } int func(int n) { static sum=0; sum=sum+n; return(sum); } the final value of x is

4 Answers   TCS,


write a program to display all prime numbers

0 Answers  


What functions are in conio h?

0 Answers  


Categories