Question #1:

#include<stdio.h>

void main()

{

     int a=10,b=90;

     printf(“%d”);

}

  • 90
  • 10
  • Compilation Error
  • Runtime Error

Question #2:

#include<stdio.h>

void mian()

{

     printf(“%d”,printf(“Learn TechToTech”));

}

  • Learn TechToTech
  • 0
  • 1
  • Error

Question #3

#include<stdio.h>

void main()

{

int Num;

printf(“%d”,scanf(“%d”,&Num)); //Suppose input is 23

}

  • 0
  • 1
  • 23
  • Error

Question #4

#include<stdio.h>

void main()

{

int Res;

Res=(8&7) && (8&10);

printf(“%d”,Res);

}

  • 0
  • 1
  • 8
  • 10

Question #5

#include<stdio.h>

void main()

{

int Res;

Res=10<<2;

printf(“%d”,Res);

}

  • 10
  • 40
  • 5
  • 2

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s