Write a following program and observe result:void main (void){char ch='A',str[]="My SMIU";int num= 2;float fnum= 12.47;clrscr();printf("character= %c\n",ch);printf("string= %s\n", str);printf("integer= %d\n", num);
#include <stdio.h>
void main (void)
{
char ch='A',str[]="My SMIU";
int num= 2;
float fnum= 12.47;
clrscr();
printf("character= %c\n",ch);
printf("string= %s\n", str);
printf("integer= %d\n", num);
}
//the program generates an error
Comments
Leave a comment