C program to print a string without any quote (single or double) in the program Last Updated : 31 Jan, 2022 Comments Improve Suggest changes Like Article Like Report Print a string without using quotes anywhere in the program using C or C++. Note : should not read input from the console. The idea is to use macro processor in C (Refer point 6 of this article). A token passed to macro can be converted to a string literal by using # before it. C // C program to print a string without // quote in the program #include <stdio.h> #define get(x) #x int main() { printf(get(vignesh)); return 0; } Output: vignesh Comment More infoAdvertise with us Next Article C program to print a string without any quote (single or double) in the program V vignesh_coder Improve Article Tags : C/C++ Puzzles C Language c-puzzle C-Macro & Preprocessor Similar Reads C Program to print numbers from 1 to N without using semicolon? How to print numbers from 1 to N without using any semicolon in C. C #include<stdio.h> #define N 100 // Add your code here to print numbers from 1 // to N without using any semicolon What code to add in above snippet such that it doesn't contain semicolon and prints numbers from 1 to N?We stro 2 min read Write a C program to print "Geeks for Geeks" without using a semicolon First of all we have to understand how printf() function works. Prototype of printf() function is: int printf( const char *format , ...) Parameter format: This is a string that contains a text to be written to stdout.Additional arguments: ... (Three dots are called ellipses) which indicates the vari 2 min read C program to print characters without using format specifiers As we know that there are various format specifiers in C like %d, %f, %c etc, to help us print characters or other data types. We normally use these specifiers along with the printf() function to print any variables. But there is also a way to print characters specifically without the use of %c form 1 min read How to print a semicolon(;) without using semicolon in C/C++? Another interesting question is how can a semicolon be printed without using any semicolon in the program. Here are methods to print ";" : Using printf / putchar in if statement: CPP // CPP program to print // ; without using ; // using if statement #include <stdio.h> int main() { // ASCII val 1 min read How to write long strings in Multi-lines C/C++? Image a situation where we want to use or print a long long string in C or C++, how to do this? In C/C++, we can break a string at any point in the middle using two double quotes in the middle. Below is a simple example to demonstrate the same. C #include<stdio.h> int main() { // We can put tw 2 min read Like