#ifdef something
int some=0;
#endif
main()
{
int thing = 0;
printf("%d %d\n", some ,thing);
}
Answer / susie
Answer :
Compiler error : undefined symbol some
Explanation:
This is a very simple example for conditional compilation.
The name something is not already known to the compiler
making the declaration
int some = 0;
effectively removed from the source code.
| Is This Answer Correct ? | 2 Yes | 2 No |
#define DIM( array, type) sizeof(array)/sizeof(type) main() { int arr[10]; printf(“The dimension of the array is %d”, DIM(arr, int)); }
enum colors {BLACK,BLUE,GREEN} main() { printf("%d..%d..%d",BLACK,BLUE,GREEN); return(1); }
Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal.
6 Answers Fusion Systems GmbH,
main() { int i=4,j=7; j = j || i++ && printf("YOU CAN"); printf("%d %d", i, j); }
Write a routine that prints out a 2-D array in spiral order
#ifdef something int some=0; #endif main() { int thing = 0; printf("%d %d\n", some ,thing); }
why is printf("%d %d %d",i++,--i,i--);
#if something == 0 int some=0; #endif main() { int thing = 0; printf("%d %d\n", some ,thing); }
main() { clrscr(); } clrscr();
Finding a number which was log of base 2
programming in c lanugaue programm will errror error with two header file one as stdio.h and other one is conio.h
write a program to find out roots of quadratic equation "x=-b+-(b^2-4ac0^-1/2/2a"