c programming 43

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

 
Do you need a similar assignment done for you from scratch? We have qualified writers to help you. We assure you an A+ quality paper that is free from plagiarism. Order now for an Amazing Discount!
Use Discount Code "Newclient" for a 15% Discount!

NB: We do not resell papers. Upon ordering, we do an original paper exclusively for you.