Skip to content
Courses
DSA to Development
Get IBM Certification
Newly Launched!
Master Django Framework
Become AWS Certified
For Working Professionals
Interview 101: DSA & System Design
Data Science Training Program
JAVA Backend Development (Live)
DevOps Engineering (LIVE)
Data Structures & Algorithms in Python
For Students
Placement Preparation Course
Data Science (Live)
Data Structure & Algorithm-Self Paced (C++/JAVA)
Master Competitive Programming (Live)
Full Stack Development with React & Node JS (Live)
Full Stack Development
Data Science Program
All Courses
Tutorials
Data Structures & Algorithms
ML & Data Science
Interview Corner
Programming Languages
Web Development
CS Subjects
DevOps And Linux
School Learning
Practice
Build your AI Agent
GfG 160
Problem of the Day
Practice Coding Problems
GfG SDE Sheet
Contests
Accenture Hackathon (Ending Soon!)
GfG Weekly [Rated Contest]
Job-A-Thon Hiring Challenge
All Contests and Events
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Sign In
▲
Similar Topics
DSA
22.5k+ articles
C++
4.2k+ articles
C Language
2.1k+ articles
Analysis of Algorithms
360+ articles
C-Pointers
74 articles
C-Operators
65 articles
C-Structure & Union
53 articles
Program Output
47 articles
C-Loops & Control Statements
15 articles
Output of C Programs
3 articles
C-Output
70 posts
Popular Articles
Recent 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 characte
...read more
c-input-output
C-Output
C Language
C-Functions
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(){
...read more
C-Output
C Language
C-Pointers
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
...read more
C-Output
C Language
C-Loops & Control Statements
Similar Topics
DSA
22.5k+ articles
C++
4.2k+ articles
C Language
2.1k+ articles
Analysis of Algorithms
360+ articles
C-Pointers
74+ articles
C-Operators
65+ articles
C-Structure & Union
53+ articles
Program Output
47+ articles
C-Loops & Control Statements
15+ articles
Output of C Programs
3+ articles
Output of C programs | Set 35 (Loops)
Last Updated: 07 September 2018
Short question based on c loops1. What will be the output of the following code?[sourcecode language="C"]#include stdio.hint main(){ int
...read more
C-Output
C Language
C-Loops & Control Statements
Output of C programs | Set 30 (Switch Case)
Last Updated: 03 June 2017
Prerequisite - Switch Case in C/C++Interesting Problems of Switch statement in C/C++ Program 1[sourcecode language="C"]#include stdio.hint m
...read more
Program Output
C-Output
C Language
C++
Output of C Programs | Set 12
Last Updated: 27 December 2016
Predict the output of below programs. Question 1[sourcecode language="c"]int fun(char *str1){ char *str2 = str1; while(*++str1); return (
...read more
C-Output
C Language
Output of C Programs | Set 9
Last Updated: 21 February 2022
Predict the output of the below programs.Question 1[tabby title="c"][sourcecode language="c"]int main(){ int c=5; printf(%d\n%d\n%d, c, c =
...read more
C-Output
C Language
Output of C programs | Set 8
Last Updated: 17 October 2022
Predict the output of below C programs.Question 1:[tabby title="c"][sourcecode language="c"]#includestdio.hint main(){ int x = 5, p = 10;
...read more
C-Output
C Language
Output of C Programs | Set 7
Last Updated: 19 January 2022
Predict the output of below programsQuestion 1[tabby title="c"][sourcecode language="c"]int main(){ int i = 0; while (i lt;= 4) {
...read more
C-Output
C Language
Output of C Programs | Set 6
Last Updated: 18 April 2018
Predict the output of below programsQuestion 1[sourcecode language="c"]int main(){ unsigned int i=65000; while ( i++ != 0 ); printf
...read more
C-Output
C Language
Output of C Programs | Set 5
Last Updated: 14 March 2023
Predict the output of below programsQuestion 1[tabby title="c"][sourcecode language="c"]int main(){ while(1){ if(printf(%d,printf(
...read more
C-Output
C Language
Output of C Programs | Set 4
Last Updated: 20 January 2022
Predict the output of below programsQuestion 1[tabby title="c"][sourcecode language="c"]#include‹stdio.h›int main(){ struct site {
...read more
C-Output
C Language
Output of C Programs | Set 3
Last Updated: 03 February 2021
Predict the output of the below program.Question 1[tabby title="c"][sourcecode language="c"]#include stdio.hint main(){ printf(%p, main);
...read more
C-Output
C Language
Output of C Programs | Set 2
Last Updated: 23 September 2020
Predict the output of below programs.Question 1[tabby title="c"][sourcecode language="c"]#includestdio.hchar *getString(){ char str[] = W
...read more
C-Output
C Language
Output of the C Program | Dereference and Reference
Last Updated: 16 April 2025
The operator * is used for dereferencing and the operator is used to get the address (can be called reference in general sense). These oper
...read more
Program Output
C-Output
C Language
C-Pointers
1
2
3
4
5
>>
Last
1
2
3
4
5
>>
Last
1
2
3
4
>>
Last
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 !