- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
C program to print characters without using format specifiers
In this article we will see how we can print some characters without using any kind of format specifiers. The format specifiers in C are %d, %f, %c etc.These are used to print characters and numbers in C using the printf() function.
Here we will see another way to print characters without using %c format specifier. This can be done by putting ASCII values directly in hexadecimal form.
Example Code
#include <stdio.h> main () { printf("\x41
"); //41 is ASCII of A in Hex printf("\x52
"); //41 is ASCII of A in Hex printf("\x69
"); //41 is ASCII of A in Hex }
Output
A R i
- Related Articles
- Format specifiers in C
- Program to print root to leaf paths without using recursion using C++
- C Program to print “Hello World!” without using a semicolon
- C program to print number series without using any loop
- Space format specifiers in Java
- C++ Program to Print “Even” or “Odd” without using conditional statement
- C Program to print “Even” or “Odd” without using Conditional statement
- C Program to print numbers from 1 to N without using semicolon
- Python program to print Possible Words using given characters
- What are different format specifiers used in C language?
- Write a C program to print “ Tutorials Point ” without using a semicolon
- C++ program to print values in a specified format
- Python program to print design door mat texture using characters
- Write a program to print ‘Tutorials Point’ without using a semicolon in C
- Java Program to print Number series without using any loop

Advertisements