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

Why header file is used in c?

0 Answers  


What is the purpose of sprintf?

0 Answers  


What is d'n in c?

0 Answers  


write a c program to add two integer numbers without using arithmetic operator +

13 Answers   Value Labs,


What is an volatile variable?

15 Answers   HP,






What is main function in c?

0 Answers  


what is the definition of storage classes?

3 Answers   Wipro,


I completed my B.tech (IT). Actually I want to develop virtual object that which will change software technology in the future. To develop virtual object what course I have to take. can I any professor to help me.

0 Answers   Oracle,


main() { unsigned int k = 987 , i = 0; char trans[10]; do { trans[i++] =(char) (k%16 > 9 ? k%16 - 10 + 'a' : '\0' ); } while(k /= 16); printf("%s\n", trans); }

4 Answers   Vector,


Which are low level languages?

0 Answers  


int arr[] = {1,2,3,4} int *ptr=arr; *(arr+3) = *++ptr + *ptr++; Final contents of arr[]

6 Answers   Hughes,


write a program to search for an element in a given array. If the array was found then display its position otherwise display appropriate message in c language

18 Answers   IT Park, TCS,


Categories