Professional Documents
Culture Documents
C Debug
C Debug
C Debug
b=? c=a?:b; printf(%d,c); 2. Write a C program to to display Hello World without the use of semi colon? Ans: Void main() { if(printf(Hello World)) } 3.PREDICT THE OUTPUT: struct stud { Int mark; Char name[20]; Float avg; }s; Union stud1 { Int mark; Char name[20]; Float avg; }s1; Void main() { Printf(%d\n,sizeof(s)); Printf(%d,sizeof(s1)); getch();} Ans: 26 20 4.What will be the outpu8t of the following program?
5.What is the output of the program? Void main() { Int a=2,b=1,c; C=a++ + ++b; Printf(%d\n%d\n%d,a,b,c); Getch(); } Ans: 3 2 4