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

"You need a similar assignment done from scratch? Our qualified writers will help you with a guaranteed AI-free & plagiarism-free A+ quality paper, Confidentiality, Timely delivery & Livechat/phone Support.


Discount Code: CIPD30



Click ORDER NOW..

order custom paper