Courses
Tutorials
Practice
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
37.4K+ articles
DSA
22.8K+ articles
Misc
8.8K+ articles
C++
4.3K+ articles
C Language
1.8K+ articles
Analysis of Algorithms
378+ articles
Program Output
48+ articles
C-Structure & Union
43+ articles
C-Operators
39+ articles
C-Loops & Control Statements
15+ articles
C-Output
70 posts
Recent Articles
Popular Articles
Output of C programs | Set 54
Last Updated: 03 August 2021
1. What will be the output of the below program?C++ #include stdio.h#define GEEKS 100int main(){#define GEEKS 100 printf(%d, GEEKS); return (0);}Output:- ...
read more
C++
C-Output
Output of C programs | Set 55
Last Updated: 13 March 2023
1. What will be the output of the following program?C #include stdio.hint main(){ int a = 03489; printf(%d, a); return (0);} Options:1. 1865 ...
read more
Misc
DSA
C-Output
Output of C programs | Set 55 (Ternary Operators)
Last Updated: 19 September 2017
Predict the output of below programsQuestion 1C #include stdio.hint main(){ int x, a = 0; x = sizeof(a++) ? printf(Geeks for Geeks\n) : 0; printf(Value...
read more
C Language
C-Output
C-Operators
Output of C programs | Set 55 (Shift Operators)
Last Updated: 03 January 2020
Prerequisite: Shift operatorsQ.1 What Is The Output Of this program?C #include stdio.hint main(){ unsigned int i = 0x80; printf(%d , i 1); return 0;} ...
read more
C Language
C-Output
C-Operators
Output of C programs | Set 56 (While loop)
Last Updated: 25 September 2017
Prerequisite : While loopsQ.1 What is the output of this program?CPP #include iostreamusing namespace std;int main(){ unsigned int x = 3; while (x-- = 0) ...
read more
C Language
C-Output
CPP-Output
C-Loops & Control Statements
Output of C programs | Set 58 (operators)
Last Updated: 02 October 2017
Prerequisite : Operators in CQ.1 What is the output of this program? CPP #include iostreamusing namespace std;int main(){ printf(value is = %d, (10 ++)); ...
read more
C Language
C-Output
C-Operators
Output of C programs | Set 57 (for loop)
Last Updated: 02 October 2017
Prerequisite : for loopQ.1 What is the output of this program? C #include iostreamusing namespace std;int main(){ for (5; 2; 2) printf("Hello\n"); ...
read more
C Language
C-Output
C-Loops & Control Statements
Output of C programs | Set 59 (Loops and Control Statements)
Last Updated: 31 August 2021
Prerequisite : Control StatementsQ.1 What is the output of this program? CPP #include iostreamusing namespace std;int main(){ char i = 0; for (; i++; pri...
read more
C Language
C-Output
C-Loops & Control Statements
Output of C programs | Set 61 (Loops)
Last Updated: 04 October 2017
Prerequisite : Loops in CQ.1 What is the output of this program? CPP #include iostreamusing namespace std;int main(){ int i, j, var = 'A'; for (i = 5; i...
read more
C Language
C-Output
C-Loops & Control Statements
Output of C programs | Set 60 (Constants)
Last Updated: 08 May 2025
Prerequisite: C Constants and StringsQ.1 What is the output of this program?C#include stdio.hint main() { const char *s = ""; char str[] = "Hello"; s = str; wh...
read more
C++
C-Output
const keyword
Output of C programs | Set 62 (Declaration & Initialization)
Last Updated: 22 November 2021
Prerequisite : Declaration Initialization in C programmingQ1. Consider the following code:C #include stdio.hvoid main(){ extern int i; i = 20; printf(...
read more
Misc
School Programming
Program Output
C-Output
Output of C programs | Set 63
Last Updated: 20 December 2017
1) What is the output of the following program?C #include stdio.h#include string.hint main(void){ char* p = geeks; printf(%lu %lu %lu , sizeof(p), sizeof(...
read more
C Language
C-Output
Output of C programs | Set 64 (Pointers)
Last Updated: 06 November 2024
Prerequisite : Pointers in C Question 1 : What will be the output of following program?C#include "stdio.h"int main(){ char a[] = { 'A', 'B', 'C', 'D' }; char* ppp = ...
read more
C Language
C-Output
C-Pointers
How to Write Your Own printf() in C?
Last Updated: 14 July 2023
In this article, we will learn how to implement your own custom printf() function in C language.The printf() function is present in stdio.h header and uses a const char* a...
read more
C Language
How To
C-Output
C Array and String
puts() in C
Last Updated: 06 September 2023
In C programming language, puts() is a function defined in header stdio.h that prints strings character by character until the NULL character is encountered. The puts() fu...
read more
C Language
c-input-output
C-Output
C-Functions
1
2
3
4
5
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !