How to print char in c Code Answer’s

In this article, I am going to show you how to print the character in C. The first step is to get your character. For this, you have to use the char function which returns a pointer to a character. Next, we need to print it on screen:

how make a character in c scanf

on Jan 01, 1970
scanf(" %c", &c);

Add Comment

0

c print char

on Jan 01, 1970
char bob = 'X';
printf("%c", bob);
putchar(bob);

Add Comment

0

c printing char pointer

on Jan 01, 1970
#include <stdio.h>

int main()
{
char * str = "Hello";
printf("%s\n", str);

return 0;
}

Add Comment

0

C Print Characters

on Jan 01, 1970
#include <stdio.h>
int main()
{
    char chr = 'a';    
    printf("character = %c", chr);  
    return 0;
}

Add Comment

0

The above code shows how to print char in c.

C answers related to "print char in c"

View All C queries

C queries related to "print char in c"

Browse Other Code Languages

CodeProZone