Client Login Register
Calculate Price & Order →
← Back to all articles

C Programming

Published on November 30, 2026 • Category: Dissertation Help
C Programming

C Programming

Q 1 – What is the output of the following code snippet?

#include<stdio.h> _x000D_
main(){int const a = 5; _x000D_
_x000D_
a++; _x000D_
printf(“%d”,a);} 

A – 5

B – 6

C – Runtime error

D – Compile error

Q 2 – What is the output of the following code snippet?

#include<stdio.h> _x000D_
main(){const int a = 5; _x000D_
_x000D_
a++; _x000D_
printf("%d", a);}

A – 5

B – 6

C – Runtime error

D – Compile error

Q 3 – What is the output of the below code snippet?

#include<stdio.h> _x000D_
main(){char s[]="hello", t[]="hello";if(s==t){ printf("eqaul strings");} }

A – Equal strings

B – Unequal strings

C – No output

D – Compilation error




Share

We only email you; unsubscribe in one click. No address is ever sold.

⚡ Order Now 💬 WhatsApp 📞

Just now