main()
{
int i=10;
i=!i>14;
Printf ("i=%d",i);
}
Answer / susie
Answer :
i=0
Explanation:
In the expression !i>14 , NOT (!) operator has
more precedence than ‘ >’ symbol. ! is a unary logical
operator. !i (!10) is 0 (not of true is false). 0>14 is
false (zero).
| Is This Answer Correct ? | 71 Yes | 4 No |
Given a spherical surface, write bump-mapping procedure to generate the bumpy surface of an orange
What is the output for the program given below typedef enum errorType{warning, error, exception,}error; main() { error g1; g1=1; printf("%d",g1); }
posted by surbhi just now main() { float a = 5.375; char *p; int i; p=(char*)&a; for(i=0;i<=3;i++) printf("%02x",(unsigned char) p[i]); } how is the output of this program is :: 0000ac40 please let me know y this output has come
#define f(g,g2) g##g2 main() { int var12=100; printf("%d",f(var,12)); }
how to delete an element in an array
WAP to display 1,2,3,4,5........N
#define SQR(x) x * x main() { printf("%d", 225/SQR(15)); } a. 1 b. 225 c. 15 d. none of the above
main() { int i=5,j=6,z; printf("%d",i+++j); }
In the following pgm add a stmt in the function fun such that the address of 'a' gets stored in 'j'. main(){ int * j; void fun(int **); fun(&j); } void fun(int **k) { int a =0; /* add a stmt here*/ }
main() { int x=5; for(;x!=0;x--) { printf("x=%d\n", x--); } } a. 5, 4, 3, 2,1 b. 4, 3, 2, 1, 0 c. 5, 3, 1 d. none of the above
String reverse with time complexity of n/2 with out using temporary variable.
main() { extern i; printf("%d\n",i); { int i=20; printf("%d\n",i); } }