main()
{
unsigned int i=65000;
while(i++!=0);
printf("%d",i);
}
Answer / susie
Answer :
1
Explanation:
Note the semicolon after the while statement. When the value
of i becomes 0 it comes out of while loop. Due to
post-increment on i the value of i while printing is 1.
| Is This Answer Correct ? | 17 Yes | 5 No |
main() { static int var = 5; printf("%d ",var--); if(var) main(); }
main() { int i; float *pf; pf = (float *)&i; *pf = 100.00; printf("\n %d", i); } a. Runtime error. b. 100 c. Some Integer not 100 d. None of the above
Is the following code legal? void main() { typedef struct a aType; aType someVariable; struct a { int x; aType *b; }; }
Cluster head selection in Wireless Sensor Network using C programming language.
How we will connect multiple client ? (without using fork,thread)
Given a spherical surface, write bump-mapping procedure to generate the bumpy surface of an orange
Write a function to find the depth of a binary tree.
13 Answers Adobe, Amazon, EFI, Imagination Technologies,
main() { int i; printf("%d",scanf("%d",&i)); // value 10 is given as input here }
func(a,b) int a,b; { return( a= (a==b) ); } main() { int process(),func(); printf("The value of process is %d !\n ",process(func,3,6)); } process(pf,val1,val2) int (*pf) (); int val1,val2; { return((*pf) (val1,val2)); }
main() { unsigned int i=65000; while(i++!=0); printf("%d",i); }
What is the main difference between STRUCTURE and UNION?
Write a complete program that consists of a function that can receive two numbers from a user (M and N) as a parameter. Then print all the numbers between the two numbers including the number itself. If the value of M is smaller than N, print the numbers in ascending flow. If the value of M is bigger than N, print the numbers in descending flow. may i know how the coding look like?