# define x=1+4;
main()
{
int x;
printf("%d%d",x/2,x/4);
}
Answer Posted / karthik
the preprocessor directive is not written correctly
so u r going to get CE
#define x 1+4
void main()
{
printf("%d%d",x/2,x/4);
}
will work fine and give output as 32
| Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
formula to convert 2500mmh2o into m3/hr
Which is better oop or procedural?
What is the significance of c program algorithms?
What is the difference between the expression “++a” and “a++”?
Do you know pointer in c?
What does %p mean?
What is the c language function prototype?
is it possible to create your own header files?
The number of measuring units from an arbitarary starting point in a record,area,or control block to some other point a) recording pointer b) offset c) branching d) none
What is dynamic variable in c?
What does sizeof function do?
An instruction which is analysed and acted upon by the processor prior to the compiler going its work a) directive b) constructive c) constant d) absolute mode
Write the test cases for checking a variable having value in range -10.0 to +10.0?
#include main() { int *p, *c, i; i = 5; p = (int*) (malloc(sizeof(i))); printf(" %d",*p); *p = 10; printf(" %d %d",i,*p); c = (int*) calloc(2); printf(" %d ",*c); }
What is the acronym for ansi?