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:
c printing char pointer
on Jan 01, 1970
#include <stdio.h>
int main()
{
char * str = "Hello";
printf("%s\n", str);
return 0;
}
0
C Print Characters
on Jan 01, 1970
#include <stdio.h>
int main()
{
char chr = 'a';
printf("character = %c", chr);
return 0;
}
0
The above code shows how to print char in c.
C answers related to "print char in c"
print char in c How to convert an int to char in c print char in c How to convert an int to char in c How to convert an int to char in c printf binary C print 2D array print char in c how to print boolean in c how to print boolean in c
View All C queries
C queries related to "print char in c"
Browse Other Code Languages
Abap ActionScript Assembly BASIC C C# C++ Clojure Cobol CSS Dart Delphi Elixir Erlang F# Fortran Go Groovy Haskell Html Java Javascript Julia Kotlin Lisp Lua Matlab Objective-C Pascal Perl PHP PostScript Prolog Python R Ruby Rust Scala Scheme Shell/Bash Smalltalk SQL Swift TypeScript VBA WebAssembly Whatever