#if something == 0
int some=0;
#endif
main()
{
int thing = 0;
printf("%d %d\n", some ,thing);
}
Answer / susie
Answer :
0 0
Explanation
This code is to show that preprocessor expressions are not
the same as the ordinary expressions. If a name is not known
the preprocessor treats it to be equal to zero.
| Is This Answer Correct ? | 7 Yes | 2 No |
Cau u say the output....?
void main() { static int i; while(i<=10) (i>2)?i++:i--; printf(ā%dā, i); }
write a program to Insert in a sorted list
main() { char *p; p="Hello"; printf("%c\n",*&*p); }
#define max 5 #define int arr1[max] main() { typedef char arr2[max]; arr1 list={0,1,2,3,4}; arr2 name="name"; printf("%d %s",list[0],name); }
main() { int i=5; printf("%d",++i++); }
what is brs test reply me email me kashifabbas514@gmail.com
Is this code legal? int *ptr; ptr = (int *) 0x400;
main() { char i=0; for(;i>=0;i++) ; printf("%d\n",i); }
Write a C program to print look and say sequence? For example if u get the input as 1 then the sequence is 11 21 1211 111221 312211 12112221 .......(it counts the no. of 1s,2s etc which is in successive order) and this sequence is used in run-length encoding.
C statement to copy a string without using loop and library function..
Write a program to implement the motion of a bouncing ball using a downward gravitational force and a ground-plane friction force. Initially the ball is to be projected in to space with a given velocity vector