Question #1:

#include<stdio.h>

void main()

{

       int m=10,n=5,Res;

       Res=m++ + ++n;

       printf(“%d”,Res);

}

  • 16 11 5
  • 16 11 6
  • 15 11 6
  • 17 11 6

Question #2:

#include<stdio.h>

void main()

{

     extern float Num;

     Num=99.9;

     printf(”%f”,Num);

}

  • Undefined reference to Num
  • 99.9
  • No Output
  • Runtime Error

Question #3:

#include<stdio.h>

void main()

{

float *Ptr

printf(“%d %d”,sizeof(Ptr),sizeof(*Ptr));

}

  • 4 4
  • 8 4
  • 8 8
  • 4 8

Question #4:

#include<stdio.h>

main()

{

printf(“Hello”);

printf(“\bHow”);

printf(“\rFine”);

}

  • HelloHow
  • HelloHowFine
  • FineHow
  • HowFine

Question #5:

main()

{

char *Ptr;

Ptr=“LearnTechToTech”;

printf(“%c\n”,*&*Ptr);

}

  • L
  • T
  • LearnTechToTech
  • Tech

 

Note: To understand the concept Click on the following link:

 

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