Pages

Friday, August 24, 2018

Predict C Program Output - 3


Predict the output of following C Programs.

Program-1

#include<stdio.h>
int main()
{
  float num=65;
  printf("Size of(num) = %d",printf("65"));
  return 0;
}


* * * * *
Program-2

#include<stdio.h>
int main()
{
  int number = 97 ;
  printf("%c",number);
  return 0;
}


* * * * *
Program-3

#include<stdio.h>
int main()
{
  char ch = '0' ;
  printf("%d", ch);
  return 0;
}


* * * * *

Program-4

#include<stdio.h>
int main()
{
  char ch = 0 ;
  printf("%d", ch);
  return 0;
}


* * * * *

Program-5

#include<stdio.h>
#define int char
int main()
{
  int num=65;
  printf("Size of(num) = %d",sizeof(num));
  return 0;
}


Check your Answer here...



No comments:

Post a Comment