Skip to content

Tag Archives: c-puzzle

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 :… Read More
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)… Read More
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… Read More
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.… Read More
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… Read More
Print a string without using quotes anywhere in the program using C or C++. Note : should not read input from the console.   Recommended: Please… Read More
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… Read More
Prerequisite : Memory Layout of C Programs In a typical process, a stack segment of program contains local variables along with information that is saved… Read More
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
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… Read More
What code to write in place of “// your code” so that the below code prints 20. #include <stdio.h> int f();    int main() {… Read More
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… Read More
How to print and store a variable name in string variable? We strongly recommend you to minimize your browser and try this yourself first In… Read More
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()… Read More
One of the most used optimization techniques in the Linux kernel is ” __builtin_expect”. When working with conditional code (if-else statements), we often know which… Read More

Start Your Coding Journey Now!