#ifdef TRUE
int I=0;
#endif
main()
{
int j=0;
printf("%d %d\n",i,j);
}
Answers were Sorted based on User's Feedback
Answer / jai
Compilation error since 1) TRUE definition is not visible
in above program, 2) i variable is not declared.
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / rohit
Compilation error due to 'i' is not declared only.
Not cause by visibility of TRUE macro.
| Is This Answer Correct ? | 1 Yes | 0 No |
cavium networks written test pattern ..
What is the purpose of clrscr () printf () and getch ()?
how can i print "hello".please consider inverted commas as well.i want to print on console: "hello"
two progs are given. one starts counting frm 0 to MAX and the other stars frm MAX to 0. which one executes fast.
#include<stdio.h> main() { int a[3]; int *I; a[0]=100;a[1]=200;a[2]=300; I=a; Printf(“%d\n”, ++*I); Printf(“%d\n”, *++I); Printf(“%d\n”, (*I)--); Printf(“%d\n”, *I); } what is the o/p a. 101,200,200,199 b. 200,201,201,100 c. 101,200,199,199 d. 200,300,200,100
What is an endless loop?
What is output redirection?
what is the size of an integer variable?
write c program without semicolon
11 Answers MindTech, TCS, Wipro,
Program to find largest of three numbers without using comparsion operator?
Can we increase size of array in c?
Write code for initializing one dimentional and two dimentional array in a C Program?
5 Answers Deshaw, Edutech, GMD,