why do some people write if(0 == x) instead of if(x == 0)?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Interview Questions

char ch="{'H','I',0};printf("%s",ch);what is output

9 Answers   Accenture,


Write the Program to reverse a string using pointers.

0 Answers   InterGraph,


What is the difference between a free-standing and a hosted environment?

0 Answers   Aspire,


what will the following program do? void main() { int i; char a[]="String"; char *p="New Sring"; char *Temp; Temp=a; a=malloc(strlen(p) + 1); strcpy(a,p); //Line no:9// p = malloc(strlen(Temp) + 1); strcpy(p,Temp); printf("(%s, %s)",a,p); free(p); free(a); } //Line no 15// a) Swap contents of p & a and print:(New string, string) b) Generate compilation error in line number 8 c) Generate compilation error in line number 5 d) Generate compilation error in line number 7 e) Generate compilation error in line number 1

1 Answers   IBM,


In a switch statement, what will happen if a break statement is omitted?

0 Answers  






What is a buffer in c?

0 Answers  


Find the O/p of the following 1) #include int main() { char c='1'; int j=atoi(c); }

4 Answers   Subex,


write a program that eliminates the value of mathematical constant e by using the formula e=1+1/1!+1/2!+1/3!+

1 Answers   Reliance,


An integer that indentifies the position of a data item in a sequence of data items a) value b) number c) index d) all of the above

0 Answers  


What is the difference between procedural and functional programming?

0 Answers  


program in c to print 1 to 100 without using loop

9 Answers   Wipro,


Difference between Function to pointer and pointer to function

0 Answers  


Categories