Professional Documents
Culture Documents
C Programming Language - GeeksforGeeks
C Programming Language - GeeksforGeeks
×
Python
Sign In Sign Up
C Programming Language
Last Updated : 24 Nov, 2021
lock Password
Remember me
Forgot Password
Sign In
or
Google Facebook
LinkedIn GitHub
Why Create an Account?
C is a procedural programming language. It was initially developed by Dennis Ritchie as a system pro-
Byoperating
gramming language to write creating this account,
system.you agree
The tomain
our Privacy Policy & Cookie
features of CPolicy.
language include low-level ac-
cess to memor y, simple set of keywords, and clean style, these features make C language suitable for
Recent Articles on C !
We use cookies to ensure you have the best browsing experience on our website. By using
C Output & Multiple Choice Questions
Operators, Preprocessor, Array & Strings, Control Statements, Functions, Pointers, Enum, Struct and
Sign In Sign Up
AVAILABLE Ad |
360 Topics
FARES
lock Password TO THE
U.S.
Remember me
Forgot Password
Book now
Sign In
or
Google
Basics:
Facebook
Functions:
LinkedIn
2. C Programming L anguage Standard
GitHub
2. Impor tance of function prototype in C
3. int (1 sign bit + 31 data bits) keyword in C 3. Functions that are executed before and after
Why Create an Account?
4. Is it fine to write “void main()” or “main()” in main() in C
By creating this account, you agree to our Privacy Policy & Cookie Policy.
C/C++? 4. return statement vs exit() in main()
5. Difference between “int main()” and “int 5. How to Count Variable Numbers of
Variable Declaration, Definition and Scope: 12. Implicit return type int in C
We use cookies to ensure you have the best browsing experience on our website.
fore By using
its declaration in C?
2. How are variables scoped in C – Static or
our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Got It !
14. _Noreturn function specifier in C
Dynamic? Policy
3. Scope rules in C 15. exit() vs _Exit()
Sign In Sign Up
7. Redeclaration of global variable in C 20. pow() function in C
lock Password
12. Initialization of global and static variables
1. Introduction to pointers in C and C++
Remember
Data me
Types:
Forgot Password
3. Why C treats array parameters as pointers?
Sign In
2. Use of bool in C Reference, Dereference, Reference
3. Integer Promotions in C
or 5. Dangling, Void , Null and Wild Pointers
Google
5. Comparison of a float with a value in C
elements Facebook
6. Need of long data type in C 7. How to declare a pointer to a function?
LinkedIn
8. Interesting facts about data-types and
9. void pointer in C
GitHub
Why Create an10.
Account?
modifiers NULL pointer in C !
Storage Classes: 15. const char *p, char * const p and const char
* const p
1. Storage Classes in C
ables in C? 1. Enum in C
We
8. use cookies to ensure“register
Understanding you have the best browsing
” keyword in C experience on
5.our website. By
Structure using
Member Alignment, Padding and
7. Bit Fields in C
Sign In
2. What is return type of getchar(), fgetc() and Sign Up
11. Difference between C structures and C++
getc() ?
structures
3. Scansets in C
account_circle
4. puts() vs printf() for printing a string
Username or email 13. Compound Literals in C
5. What is use of %n in printf() ?
lock
7. Quiz on Input Output in C
Password Memory Management:
Remember me
fprintf? Forgot Password
2. How to deallocate memor y without using
Sign In
getch() and getche() 3. calloc() versus malloc()
specifier be deallocated?
11. Use of fflush(stdin) in C Google
5. Use of realloc() Facebook
12. Clearing input buffer in C/C++ 6. What is Memor y Leak? How can we avoid?
14. getchar_unlocked() in C
LinkedIn GitHub
File Handling:
Operators:
5. fgets() and gets() in C
Operators 7. fsetpos() in C
We
9. use cookies to
A comma ensure youquestion
operator have the best browsing experience15.
on our website.
Merge By using of two files into a third file
contents
and C++
value Expression
C/C++
of C variables?
account_circle
4. Condition To Print “HelloWord”
Username or email
15. C/C++ Ternar y Operator – Some Interesting
5. Change/add only one character and print ‘*’
Obser vations
exactly 20 times
lock Password
16. Pre-increment (or pre-decrement) in C++
Remember me
18. Results of comparison operations in C and
Forgot Password
7. What is the best way in C to conver t a num-
C++
ber to a string?
any operator
Google
22. Anything written in sizeof() is never
Facebook
10. How will you print numbers from 1 to 100
executed
11. How can we sum the digits of a given num-
LinkedIn
23. Difference between strlen() and sizeof() GitHub
ber in single statement?
Preprocessor:
13. Write a one line C function to round floating
2. Variable length arguments for Macros 14. How will implement Your Own sizeof
5. The OFFSE TOF() macro, 16. How to change the output of printf() in
7. Diffference between #define and const in C? 17. How to find length of a string without
9. What’s difference between header files 18. Implement your own itoa()
“stdio.h” and “stdlib.h” ? 19. Write a C program that does not terminate
1 C
Sign In Sign Up
16. write your own header file in C 25. C program to print characters without using
18. tmpnam() librar y function 26. C program to print a string without any
account_circle
19. _Generic keyword in C Username or email quote (singe or double) in the program
20. math.h librar y functions 27. Execute both if and else statements
lock
21. typedef versus #define in C
Password simultaneously
22. str ftime() librar y function 28. Print “Hello World” without using any header
Remember me
23. exec family of functions file
Forgot Password
3. Proper ties of array in C L anguage Google
3. Use of bool in C Facebook
4. Do not use sizeof for array parameters 4. Sequence Points in C | Set 1
6. Are array members deeply copied?
LinkedIn
(swapping),
GitHub
Why Create an Account?
7. What is the difference between single 6. A SCII NUL, A SCII 0 (’0?) and Numeric literal
By creating
quoted and double quoted this account, you
declaration ofagree to our Privacy
0 Policy & Cookie Policy.
10. What’s difference between char s[] and char 12. fork() in C
11. gets() is risk y to use! 14. Precision of floating point numbers in C++
14. Difference between array and pointer 15. setjump() and longjump() in C
15. How to dynamically allocate a 2D array in C? 16. nextafter() and nexttoward() in C/C++
20. Shor t hand array notation 23. Difference between fork() and exec()
Sign In Sign Up
22. strcpy() in C/C++ 25. Why is C considered faster than other
24. strdup() and strdndup() in C/C++ 26. Incompatibilities between C and C++
account_circle
25. Pass an array by value Username or email 27. Conver t C/C++ code to assembly language
lock
27. strpbrk() in C
scene
Remember me
29. ispunct() in C 30. Hygienic Macros in C
Forgot Password
30. strspn() in C 31. Command line arguments in C/C++
or
Control Statements: 33. Some Interesting Facts in C Programming
Google
1. What should be data type of case labels of
Facebook
35. Function Interposition in C
switch statement in C?
3. A nested loop puzzle
LinkedIn GitHub
37. Write your own memcpy() and memmove()
4. switch statement in C
Why Create an Account?
C Language Interview Questions
By creating this
5. Difference between while(1) and account, you agree
while(0) to our Privacy Policy & Cookie Policy.
C/C++ Programs
Geeksforgeeks Courses:
Learn any programming language from scratch and understand all its fundamentals concepts for a
We use cookies to ensure you have the best browsing experience on our website. By using
strong programming foundation in the easiest possible manner with help of GeeksforGeeks
our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Got It !
Policy
Language Foundation Courses – Java Foundation | Python Foundation | C++ Foundation
2. Geeks Classes Live
Get inter view-centric live online classes on Data Structure and Algorithms from any geographical lo-
Sign In Sign Up
Get fulfilled all your inter view preparation needs at a single place with the Complete Inter view
Preparation Course that provides you all the required stuff to prepare for any product-based, ser vice-
lock Password
Start learning Data Structures and Algorithms to prepare for the inter views of top IT giants like
Remember me
Microsoft, Amazon, Adobe, etc. with DSA Self-Paced Course where you will get to learn and master
Forgot Password
DSA from basic to advanced level and that too at your own pace and convenience.
Sign In
5. Company Specific Courses – Amazon, Microsoft, TCS & Wipro
Crack the inter view of any product-based giant company by specifically preparing with the questions
or
that these companies usually ask in their coding inter view round. Refer GeeksforGeeks Company
Google
Specific Courses: Amazon SDE Test Series, etc.
Facebook
LinkedIn GitHub
Why Create an Account?
By creating this account, you agree to our Privacy Policy & Cookie Policy.
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 Got It !
Policy
Start Your Coding Journey Now! Login Register×
Sign In Sign Up
Writing code in comment? Please use ide.geeksforgeeks.org, generate link and share the link here.
Load Comments
account_circle Username or email
Sign In
or
Google
Company Facebook
Learn
About Us Algorithms
Careers
LinkedIn GitHub
Data Structures
Why Create an Account?
Privacy Policy Languages
By creating this account, you agree to our Privacy Policy & Cookie Policy.
Contact Us CS Subjects
Copyright Policy Video Tutorials
@geeksforgeeks
, Some rights reserved
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 Got It !
Policy