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.5K+ 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
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-input-output
C-Output
C Language
C-Functions
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-Output
C Language
C Array and String
How To
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?[GFGTABS] C #include stdio.hint main(){ char a[] = { A, B, C, D }; ...
read more
C-Output
C Language
C-Pointers
Output of C programs | Set 63
Last Updated: 20 December 2017
1) What is the output of the following program?[sourcecode language="C"]#include stdio.h#include string.hint main(void){ char* p = geeks; printf(%lu %lu %lu , sizeof...
read more
C-Output
C Language
Output of C programs | Set 62 (Declaration & Initialization)
Last Updated: 22 November 2021
Prerequisite : Declaration Initialization in C programmingQ1. Consider the following code:[tabby title="C"][sourcecode language="C"]#include stdio.hvoid main(){ extern...
read more
Program Output
C-Output
School Programming
Output of C programs | Set 61 (Loops)
Last Updated: 04 October 2017
Prerequisite : Loops in CQ.1 What is the output of this program? [sourcecode language="CPP" highlight=""]#include iostreamusing namespace std;int main(){ int i, j, va...
read more
C-Output
C Language
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?[GFGTABS] C #include stdio.hint main() { const char *s = ; char str[] = Hel...
read more
C-Output
C++
const keyword
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? [GFGTABS] CPP #include iostreamusing namespace std;int main(){ char i = 0; fo...
read more
C-Output
C Language
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? [sourcecode language="CPP" highlight=""]#include iostreamusing namespace std;int main(){ printf(va...
read more
C-Output
C Language
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? [GFGTABS] C #include iostreamusing namespace std;int main(){ for (5; 2; 2) printf(H...
read more
C-Output
C Language
C-Loops & Control Statements
Output of C programs | Set 56 (While loop)
Last Updated: 25 September 2017
Prerequisite : While loopsQ.1 What is the output of this program?[sourcecode language="CPP" highlight=""]#include iostreamusing namespace std;int main(){ unsigned int x...
read more
C-Output
CPP-Output
C Language
C-Loops & Control Statements
Output of C programs | Set 55 (Shift Operators)
Last Updated: 03 January 2020
Prerequisite: Shift operatorsQ.1 What Is The Output Of this program?[sourcecode language="C"]#include stdio.hint main(){ unsigned int i = 0x80; printf(%d , i 1); ...
read more
C-Output
C Language
C-Operators
Output of C programs | Set 55 (Ternary Operators)
Last Updated: 19 September 2017
Predict the output of below programsQuestion 1[sourcecode language="C" highlight=""]#include stdio.hint main(){ int x, a = 0; x = sizeof(a++) ? printf(Geeks for Geek...
read more
C-Output
C Language
C-Operators
Output of C programs | Set 55
Last Updated: 13 March 2023
1. What will be the output of the following program?[sourcecode language="C" highlight=""]#include stdio.hint main(){ int a = 03489; printf(%d, a); return (0);}[/...
read more
Misc
C-Output
DSA
Output of C programs | Set 54
Last Updated: 03 August 2021
1. What will be the output of the below program?[tabby title="C++"][sourcecode language="cpp"]#include stdio.h#define GEEKS 100int main(){#define GEEKS 100 printf(%d, G...
read more
C-Output
C++
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 !