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
C Language
2.1k+ articles
C-String
73 articles
C-Operators
65 articles
Operators
51 articles
C-String-Question
44 articles
C-Macro & Preprocessor
33 articles
Loops & Control Structure
32 articles
C-Storage Classes and Type Qualifiers
30 articles
C-Loops & Control Structure
22 articles
Storage Classes and Type Qualifiers
20 articles
Programming Language
>
C Language
>
C Quiz
C Quiz
280+ posts
Popular Articles
Recent Articles
Difference between const int*, const int * const, and int const *
Last Updated: 21 February 2023
int const*int const* is pointer to constant integer This means that the variable being declared is a pointer, pointing to a constant integer
...read more
GATE CS
Programming Language
C Language
Quizzes
C Quiz
Difference Between
C Programs
Picked
Compiling a C Program: Behind the Scenes
Last Updated: 07 April 2025
The compilation is the process of converting the source code of the C language into machine code. As C is a mid-level language, it needs a c
...read more
C Basics
C Language
C Quiz
system-programming
C | File Handling | Question 1
Last Updated: 28 June 2021
Which of the following true about FILE *fp(A) FILE is a keyword in C for representing files and fp is a variable of FILE type.(B) FILE is a
...read more
C Language
C Quiz
C-File Handling
File Handling
Similar Topics
C Language
2.1k+ articles
C-String
73+ articles
C-Operators
65+ articles
Operators
51+ articles
C-String-Question
44+ articles
C-Macro & Preprocessor
33+ articles
Loops & Control Structure
32+ articles
C-Storage Classes and Type Qualifiers
30+ articles
C-Loops & Control Structure
22+ articles
Storage Classes and Type Qualifiers
20+ articles
C | Dynamic Memory Allocation | Question 7
Last Updated: 28 June 2021
What is the problem with following code?[sourcecode language="C"]#includestdio.hint main(){ int *p = (int *)malloc(sizeof(int)); p = N
...read more
C Language
C Quiz
C-Dynamic Memory Allocation
Dynamic Memory Allocation
C | Arrays | Question 7
Last Updated: 03 August 2018
Consider the following declaration of a ‘two-dimensional array in C:[sourcecode language="C"] char a[100][100]; [/sourcecode]Assuming that
...read more
C Language
C Quiz
C-Arrays
Arrays
C | Misc | Question 7
Last Updated: 01 September 2021
The number of tokens in the following C statement isprintf("HELLO WORLD");(A)3(B)5(C)9(D)8 Answer: (B)Explanation:In a C source program, th
...read more
C Quiz
C-Misc
misc
C | Storage Classes and Type Qualifiers | Question 1
Last Updated: 28 June 2021
Which of the following is not a storage class specifier in C?(A)auto(B)register(C)static(D)extern(E)volatile Answer: (E)Explanation:volatil
...read more
C Language
C Quiz
C-Storage Classes and Type Qualifiers
Storage Classes and Type Qualifiers
C | Loops & Control Structure | Question 8
Last Updated: 01 June 2021
[sourcecode language="C"]#includestdio.hint main(){ int n; for (n = 9; n!=0; n--) printf(n = %d, n--); return 0;}[/sourcecode]What
...read more
C Quiz
C-Loops & Control Structure
Loops & Control Structure
C | Advanced Pointer | Question 1
Last Updated: 28 June 2021
[tabby title="C"][sourcecode language="c"]void fun(int *p) { int q = 10; p = } int main() { int r = 20; int *p = fun(p);
...read more
C Language
C Quiz
C-Advanced Pointer
Advanced Pointer
C | Pointer Basics | Question 1
Last Updated: 04 February 2013
What is the output of following program?[sourcecode language="C"]# include stdio.hvoid fun(int x){ x = 30;}int main(){ int y = 20; fun(
...read more
C Language
C-Pointers
Pointers
C Quiz
C | Structure & Union | Question 4
Last Updated: 28 June 2021
Consider the following C declaration[tabby title="C"][sourcecode language="c"]struct { short s[5]; union { float y;
...read more
C Language
C Quiz
C-Structure & Union
Structure & Union
C | Loops & Control Structure | Question 1
Last Updated: 09 January 2013
[sourcecode language="C"]#include stdio.hint main(){ int i = 1024; for (; i; i = 1) printf(GeeksQuiz); return 0;}[/sourcecod
...read more
C Language
C Quiz
C-Loops & Control Structure
Loops & Control Structure
C | Operators | Question 2
Last Updated: 28 June 2021
#include stdio.hint main(){ int i = 1, 2, 3; printf("%d", i); return 0;}(A) 1(B) 3(C) Garbage value(D) Comp
...read more
C Language
C Quiz
C-Operators
Operators
C | Operators | Question 1
Last Updated: 08 May 2017
#include \"stdio.h\"int main() { int x, y = 5, z = 5; x = y == z; printf(\"%d\", x); getchar(); return 0; }(A)0(B)1(C)5(D)Compil
...read more
C Quiz
C | Input and Output | Question 13
Last Updated: 28 June 2021
Predict the output of following program?[sourcecode language="C"]#include stdio.hint main(){ char arr[100]; printf(%d, scanf(%s, arr))
...read more
C Language
C Quiz
C-Input and Output Quiz
Input and Output
1
2
3
4
5
6
7
8
>>
Last
1
2
3
4
5
6
>>
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 !