Please enter your email:
1. What will the output?
#include <stdio.h> int main() { int a = 5, b = 2; float c = a / b; printf(“%f”, c); return 0; }
2. What will be the Output?
#include <stdio.h> int main() { float x = 5.7; printf(“%d”, x); return 0; }
3. What is the Output in 32 bit compiler?
#include <stdio.h> int main() { int a; printf(“%d”, sizeof(a)); return 0; }
4. What will be the Output?
#include <stdio.h> int main() { int a = 1, b = 2, c; c = (a = b); printf(“%d %d %d”, a, b, c); return 0; }
5. What will be the Output?
#include <stdio.h> int main() { printf(“Hello\nWorld”); return 0; }
6. What will be the Output?
#include <stdio.h> int main() { char ch = ‘A’; printf(“%c”, ch + 1); return 0; }
7. What will be the Output?
#include <stdio.h> int main() { int x = 10, y = 20, z; z = x = y; printf(“%d %d %d”, x, y, z); return 0; }
8. What will be the output?
#include <stdio.h> int main() { float a = 5, b = 2; printf(“%f”, a / b); return 0; }
9. What will be the Output?
#include <stdio.h> int main() { int a = 7; float b = 2.0; printf(“%f”, a / b); return 0; }
10. What will be the Output?
#include <stdio.h> int main() { char ch = ‘A’; printf(“%c %d”, ch, ch); return 0; }
Question 1 of 10
Your email address will not be published. Required fields are marked *
Comment *
Name *
Email *
Website
Save my name, email, and website in this browser for the next time I comment.