Java (2877)
Python (730)
Go (587)
JavaScript (451)
C++ (337)
C (312)
Fashion (100)
Ancient History (95)
CSS (92)
HTML (73)
Linux (72)
Public Speaking (68)
Economics (67)
History (66)
Modern History (66)
English Spoken (61)
Sociology (59)
Personal Development (58)
PHP (58)
Technology (57)
Ancient Bihar (56)
Web Development (51)
Software Testing (48)
Android (47)
MySQL (47)
Node.js (47)
Hosting (46)
National Day (46)
React (46)
Email (45)
International Day (45)
AWS (44)
English Grammar (44)
Elasticsearch (43)
Git (43)
Bhakti (42)
Bihar (42)
Blockchain (42)
SQL (42)
Introductory Sociology (32)
Microeconomics (28)
Interview Questions (17)
Social Institutions (14)
मांग और आपूर्ति (13)
Macroeconomics (7)
CodeIgniter (6)
Indian Economy (6)
Medieval History (5)
Laravel (4)
Accessibility (3)
Next.js (1)
Social Processes and Social Change (1)
  1. Home>>
  2. Topics>>
  3. C
‌
‌
‌
‌
‌
‌
‌
‌
‌
‌
‌
‌
‌
‌

Best Division

Spread Your Knowledge

  • All topics
  • About us
  • Contact us
  • Privacy policy
  • Terms of service
  • Copyright
  • Facebook
  • Twitter
  • Instagram
  • Youtube
  • LinkedIn
  • Pinterest
  • Github
  • Tumblr

© 2026 Best Division

C

312 posts about C: questions with answers, tutorials and articles, newest first.

CQuestion
C

How do you declare and use arrays in C?

A beginner guide to arrays in C: declaring, initialising, looping, finding the length and avoiding out-of-bounds errors, with complete examples.

Jayant KumarJayant Kumar
Nov 30, 2026
CQuestion
C

How do you use argc and argv in C?

Learn how command line arguments work in C: what argc and argv hold, how to validate them, convert them to numbers and parse simple flags.

Jayant KumarJayant Kumar
Nov 30, 2026
CQuestion
C

How do you write variadic functions in C?

Learn how variadic functions work in C with stdarg.h, including counts, sentinels, format strings, promotions and the common pitfalls.

Jayant KumarJayant Kumar
Nov 30, 2026
CQuestion
C

What are storage classes in C: auto, register, extern, static?

Storage classes in C control how long a variable lives and who can see it. See auto, register, extern and static with clear, runnable examples.

Jayant KumarJayant Kumar
Nov 29, 2026
CQuestion
C

What Is the Scope and Lifetime of a Variable in C?

Scope is where a C variable's name is visible; lifetime is how long it exists. See local, global and static variables with examples and common bugs.

Jayant KumarJayant Kumar
Nov 29, 2026
CQuestion
C

How Does Recursion Work in C?

Recursion in C means a function calls itself until a base case stops it. See how the call stack works, with factorial and Fibonacci examples and pitfalls.

Jayant KumarJayant Kumar
Nov 29, 2026
CQuestion
C

Is C Call by Value or Call by Reference?

C passes every argument by value. See why changes to a parameter do not affect the caller and how passing pointers gives call by reference behaviour.

Jayant KumarJayant Kumar
Nov 28, 2026
CQuestion
C

What Is a Function Prototype in C?

A function prototype tells the compiler a function's signature before it is defined, so calls can be checked. Learn the syntax, headers and common mistakes.

Jayant KumarJayant Kumar
Nov 28, 2026
CQuestion
C

How Do You Declare and Define a Function in C?

A C function needs a return type, a name, parameters and a body. See how declarations differ from definitions and how to split functions across files.

Jayant KumarJayant Kumar
Nov 28, 2026
CQuestion
C

What Is the goto Statement in C and Should You Use It?

The goto statement jumps to a label in the same function. See its syntax, the rules, why it has a bad reputation and the two cases where it is still useful.

Jayant KumarJayant Kumar
Nov 27, 2026
CQuestion
C

How do you print star and number patterns in C?

Print stars and numbers in triangles, pyramids and diamonds with nested for loops. Learn the row, space and symbol formulas behind each pattern.

Jayant KumarJayant Kumar
Nov 27, 2026
CQuestion
C

How do break and continue work in C loops?

break leaves the nearest loop or switch; continue skips to the next iteration. See how each behaves in for and while loops and nested code.

Jayant KumarJayant Kumar
Nov 27, 2026
CQuestion
C

What is the difference between while and do while in C?

A while loop may run zero times; a do while loop always runs once. Compare syntax and use cases with clear C examples.

Jayant KumarJayant Kumar
Nov 26, 2026
CQuestion
C

How does the for loop work in C?

A for loop repeats code using initialisation, condition and update in one line. Learn the execution order, array traversal and common pitfalls.

Jayant KumarJayant Kumar
Nov 26, 2026
CQuestion
C

How do you use the ternary operator in C?

The ternary operator picks one of two values in a single expression. See its syntax, type rules, precedence and when to use if else instead.

Jayant KumarJayant Kumar
Nov 26, 2026
CQuestion
C

How does the switch statement work in C?

A switch jumps to the case label that matches an integer expression. Learn break, default, fall-through and the rules for case labels.

Jayant KumarJayant Kumar
Nov 25, 2026
CQuestion
C

How does the if else statement work in C?

The if else statement runs code depending on a condition. Learn the syntax, else if chains, logical operators and the mistakes to avoid.

Jayant KumarJayant Kumar
Nov 25, 2026
CQuestion
C

What is integer overflow in C and how do you prevent it?

Signed integer overflow is undefined behavior in C while unsigned wraps. Learn how to check operands, use checked helpers and catch bugs early.

Jayant KumarJayant Kumar
Nov 25, 2026
CQuestion
C

What is undefined behavior in C and why does it matter?

Undefined behavior means the C standard sets no rules for invalid operations. See common causes, how compilers exploit it and how to find it.

Jayant KumarJayant Kumar
Nov 24, 2026
CQuestion
C

How do you use the const keyword in C?

The const keyword makes an object read-only. See how it works with variables, pointers and function parameters, and why casting it away is risky.

Jayant KumarJayant Kumar
Nov 24, 2026

Hmm... Want More

Please try with different query
Page 1Older posts →