post new interiew question and aptitude test papers
Explain the use of #pragma exit?
main() { char x; while(x=0;x<=255;x++) printf("\nAscii value %d Charater %c",x,x); }
what is the difference between postfix and prefix unary increment operators?
Which of the following is not a valid declaration for main ()? 1) int main() 2) int main(int argc, char *argv[]) 3) They both work
What is the difference between near, far and huge pointers?
union { char ch[10]; short s; }test; test.s = 0xabcd; main() { printf("%d",ch[10]); }
what is difference between c and c++
How can I use a preprocessorif expression to ?
How important is structure in life?
what is the output? #define fun(a,b,t) (g ##t=(a),(a)=(b),(b)=g##t) float gfloat; main() { float a=1.12,b=3.14; fun (a,b,float); printf("na=%4.2f,b=%4.2f",a,b); } A)Error in Defining Macro B)a=1.12,b=3.14 C)a=3.14,b=1.12 D)None of the Above
3 Answers Accenture, Infosys, Wipro,
say the following declaration is correct nr not. int b=a,n=0;
What are integer variable, floating-point variable and character variable?