Courses
Tutorials
Interview Prep
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
Similar Topics
Web Technologies
32.1K+ articles
Misc
7.7K+ articles
C++
3.8K+ articles
C Language
1.3K+ articles
CPP-Basics
102+ articles
C-Functions
90+ articles
C/C++ Puzzles
69+ articles
C-Data Types
39+ articles
cpp-puzzle
32+ articles
C-Macro & Preprocessor
18+ articles
c-puzzle
30 posts
Recent Articles
Popular Articles
How to clear console in C language?
Last Updated: 11 November 2022
It is one of the basic need a program may required i.e clear the console during execution time.Need of a clear console screen :A console screen must be cleared once its st...
read more
Misc
C Language
c-puzzle
c-input-output
Print a number 100 times without using loop, recursion and macro expansion in C?
Last Updated: 21 June 2022
It is possible to solve this problem using loop or a recursion method. And we have already seen the solution using #define directive (Macro expansion) but what if all thre...
read more
C++
c-puzzle
cpp-puzzle
C program to print characters without using format specifiers
Last Updated: 29 October 2017
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 ...
read more
Misc
C Language
c-puzzle
C/C++ Tricky Programs
Last Updated: 14 March 2024
We may come across various tricky programs in our day-to-day life. Maybe in technical interviews, coding tests, or C/C++ classrooms.Here is a list of such programs:-Print ...
read more
C++
c-puzzle
cpp-puzzle
How to print a number 100 times without using loop and recursion in C?
Last Updated: 02 March 2023
It is possible to solve this problem using loop or a recursion method but what if both are not allowed? A simple solution is to write the number 100 times in cout statemen...
read more
Misc
C Language
c-puzzle
C program to print a string without any quote (single or double) in the program
Last Updated: 31 January 2022
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 poi...
read more
C/C++ Puzzles
C Language
c-puzzle
C-Macro & Preprocessor
Write a C program to print "GfG" repeatedly without using loop, recursion and any control structure?
Last Updated: 11 October 2018
As we all know the concept of printing the given string repeatedly using various loops(for loop,while loop),recursion and some control structure also. But the question is ...
read more
Misc
C Language
c-puzzle
C Program to find direction of growth of stack
Last Updated: 23 July 2025
Prerequisite : Memory Layout of C ProgramsIn a typical process, a stack segment of program contains local variables along with information that is saved each time a functi...
read more
C Language
c-puzzle
system-programming
Execute both if and else statements in C/C++ simultaneously
Last Updated: 13 September 2023
Write a C/C++ program that executes both if-else block statements simultaneously.Syntax of if-else statement in C/C++ language is:if (Boolean expression){ // Statement ...
read more
C++
c-puzzle
CPP-Basics
cpp-puzzle
Print "Hello World" in C/C++ without using any header file
Last Updated: 13 September 2023
Write a C/C++ program that prints Hello World without including any header file.Conceptually it's seems impractical to write a C/C++ program that print Hello World without...
read more
C++
c-puzzle
Write a C program to print "Geeks for Geeks" without using a semicolon
Last Updated: 11 September 2023
First of all we have to understand how printf() function works. Prototype of printf() function is:int printf( const char *format , ...)Parameterformat: This is a string th...
read more
Misc
C Language
c-puzzle
A C Puzzle
Last Updated: 21 June 2018
What code to write in place of "// your code" so that the below code prints 20.C #include stdio.hint f();int main(){ int a = 0; f(); printf(%d,a); ...
read more
C Language
c-puzzle
C Program to print numbers from 1 to N without using semicolon?
Last Updated: 23 July 2025
How to print numbers from 1 to N without using any semicolon in C.C #includestdio.h#define N 100// Add your code here to print numbers from 1// to N without usi...
read more
C Language
c-puzzle
How to print a variable name in C?
Last Updated: 02 January 2025
Printing a variable name means printing the identifier that is assigned to the variable. To print it, it should be in the form of string. This can be done by using stringi...
read more
C Language
c-puzzle
cpp-macros
C-Macro & Preprocessor
How to write a running C code without main()?
Last Updated: 23 July 2025
Write a C language code that prints GeeksforGeeks without any main function. Logically it's seems impossible to write a C program without using a main() function. Since ev...
read more
C Language
c-puzzle
1
2