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;
}
#include<stdio.h>
int main()
{
int number = 97 ;
printf("%c",number);
return 0;
}
#include<stdio.h>
int main()
{
char ch = '0' ;
printf("%d", ch);
return 0;
}
int main()
{
char ch = 0 ;
printf("%d", ch);
return 0;
}
#include<stdio.h>
#define int char
int main()
{
int num=65;
printf("Size of(num) = %d",sizeof(num));
return 0;
}
Check your Answer here...
Program-1
#include<stdio.h>
int main()
{
float num=65;
printf("Size of(num) = %d",printf("65"));
return 0;
}
* * * * *
Program-2
int main()
{
int number = 97 ;
printf("%c",number);
return 0;
}
* * * * *
Program-3
int main()
{
char ch = '0' ;
printf("%d", ch);
return 0;
}
* * * * *
#include<stdio.h>
Program-4
int main()
{
char ch = 0 ;
printf("%d", ch);
return 0;
}
* * * * *
Program-5
#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