Answer to Question #210141 in C for Nonii

Question #210141

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);


1
Expert's answer
2021-06-23T17:06:45-0400
#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

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS