XQA
HomeAboutBlogPracticeLearnContact

C Programming

Free programming lessons

BeginnerIntermediateHard
Hello World in CVariables and Data TypesC Data Types in CC CommentsC goto Statement in CC LanguageFind roots of a quadratic equationC Variables, Constants and LiteralsC Input Output (I/O)C break and continueC Storage ClassC Precedence And Associativity Of OperatorsC tutorialsC ExamplesC from a Learning PerspectiveC as Career ChoiceC - HomeC - OverviewC - FeaturesC - HistoryC - StandardsC - Basic SyntaxC - User InputC - KeywordsC Compiler in CC - Environment SetupC Input and OutputVariables (C Programming)C OperatorsC - Compilation ProcessC - TokensC - LinkageC - LiteralsC - BooleansC - Escape SequencesC - Integer PromotionsC - Character ArithmeticC - Type ConversionC - Type CastingC - Ternary OperatorC - Increment and Decrement OperatorsC - Special CharactersC - Restrict KeywordC - Bit FieldsC - Input & OutputC - getc, getchar, getch, getcheC - Variable ArgumentsC - Static KeywordC - Command ExecutionC - Random Number GenerationC - Quick GuideC - DiscussionUPSC IAS Exams NotesWhy to Learn C Programming?FAQs on C ProgrammingHello World using C ProgrammingApplications of C ProgrammingEC/EEC IntroductionC FundamentalsC Flow ControlBasic typeslogical operatorsProgram to Check Odd or Even Using the Ternary OperatorC sqrt()C Control Flow ExamplesStep 5: Install C/C++ Extension in VS CodeInstall C on Your ComputerStep 3: Check for C CompilerStep 2: Install C Extensiondifferent types of data a variable can storeVideo: Data Types in C ProgrammingVideo: Variables in C ProgrammingVideo: Get User Input in C Programmingincrement and decrement operators work when used as postfixArithmetic OperatorsAssignment Operators (C Programming)sizeof Operator (C Programming)Example 1: Arithmetic OperatorsExample 3: Assignment Operators (C Programming)Example 4: Relational Operators (C Programming)Other Operators (C Programming)Comma OperatorVideo: Arithmetic Operators in CExample: C continueExample: C breakC continueWhy Use C Language?Advantages of C LanguageDrawbacks of C LanguageGetting Started with C Programmingoperators (C Programming)C is a General-Purpose LanguageC is a Fast Programming LanguageC is ExtensibleHistory of C Versions After Traditional CRole of ANSI and ISO in C standardizationInstallation on Mac OSThe Step-by-Step Execution of a C ProgramWhat Goes Inside the C Compilation Process?Why to Use Comments in C Programming?Whitespaces in a C Programdata type (C Programming)Example: User Inputs in CInteger Input (C Programming)Float Input (C Programming)Example: Float Input in CExample: Integer and Float Inputs in CExample: Multiple Character Inputs in CExample: Character Input Using gets()variable (C Programming)Primary Types C KeywordsUser-defined Types C KeywordsStorage Types C KeywordsNaming Conventions of C VariablesWhy Do We Use Variables in C?Variable Definition in CExample: Variable Definition and Initialization (C Programming)Variable Linkage in CExample of Integer Data Types (C Programming)Example Floating-Point Data Types (C Programming)The void Data Type in CC - VariablesC - ConstantsC - Decision MakingC - Scope RulesC - PragmasC - Useful ResourcesC PrerequisitesExample 1: C OutputExample 2: Integer Output (C Programming)Example 3: float and double Output (C Programming)Example 5: Integer Input/Output (C Programming)Relational Operators (C Programming)Example 5: Logical OperatorsThe sizeof operator (C Programming)comparison operatorsC is PortableC Has a Rich Set of Built-in OperatorsOverview of C Language HistoryExample: Integer Input in CCharacter InputExample of C KeywordsVariable Declaration in CC - Lookup TablesC - Questions & AnswersC AudiencesVideo: Comments in C ProgrammingExample 7: C Character I/OExample 6: sizeof Operator (C Programming)C breakC is a Mid-Level Programming LanguageSubroutines in a C ProgramStatements in a C ProgramExample: Multiple Integer Inputs in CC ApplicationsC Additional Topicsdecision making in C programmingStandardized Versions of C Programming LanguageVariable DeclarationCompiling a C ProgramExample: Character Input in CComments in a C ProgramYour First C ProgramDefining variables (C Programming)Run C OnlineLocal variable
If-Else and SwitchC if...else StatementC for Loop in CC switch Statement in CC while and do...while Loop in CC - Loops in CC - For Loop vs While Loop in CIs C for you?C Keywords and IdentifiersC - Format SpecifiersC - IdentifiersC While Looploops (C Programming)C - Do...while Loop in CHow for loop works? (C Programming)Example 2: for loop (C Programming)How while loop works? (C Programming)Flowchart of while loopExample 1: while loop (C Programming)How do...while loop works? (C Programming)Example 2: do...while loop (C Programming)Length Modifiers in printf() FunctionFormat Specifiers in printf() FunctionFormat Specifiers in scanf() FunctionExample of Function IdentifierFlowchart of do...while Looplooping statements (C Programming)Example 1: for loop (C Programming)Loops and Loop Control C KeywordsC - Nested if StatementsC - Switch Case Using RangeC - Predefined Identifier __func__C - Formatted Output2 Year Programs for GATE 2028 (C Programming)Format Specifiers for I/OSyntax of switchSyntax of switch...caseVideo: C if switch caseISO’s Role (International Organization for Standardization) (C Programming)C identifierNeed for User Input in CUser Input Format SpecifiersFormat Flags in printf()Example: Add Space Before Positive Numbers ( ) FlagExample: Alternate Form (#) Flag for Octal and HexWhy Do We Use Format Specifiers in C?Floating-point Formats (C Programming)Types of Format Specifiersswitch caseExamples of C IdentifiersScope of C IdentifiersExamples of Different Types of C IdentifiersC - Nested Switch Statements1 Year Programs for GATE 2027 (C Programming)Make a Simple Calculator Using switch...caseUsing CodeBlocks IDE for C ProgrammingExample 3: C if...else LadderNaming Rules of C IdentifiersC - Const QualifierWe couldn't find what you're looking forWill I get access to last year's recorded content for free?Miro Review: The AI-Powered Workspace for Product, Design, and Engineering TeamsHow to use non-integer, float values for Tkinter Scale widget scrollbar?Removing a specific item@GeeksforGeeks, Sanchhaya Education Private Limited
Understanding C FunctionsC User-defined FunctionsTypes of User-defined Functions in C ProgrammingC - Function Prototype in CC - Function call by Value in CC - Function call by reference in CC - Callback Function in CC - printf Function in CC - Main Function in Csqrt() functionCheck Prime or Armstrong Number Using User-defined FunctionUser-defined Function in C programmingWhat is a function?Types of user-defined FunctionsUser-defined functionAdvantages of functionHow user-defined function work?Types of functionpassing arguments and returning value from a functionFunction callFunction with no arguments and a return valueFunction with arguments and no return valuefunctionsfunctionscanf() functiongetchar() functionC User Input Function: The scanf()Standard library functionExample: User-defined-functionFunction definitionPassing arguments to a functionFunction with no arguments and no return valuegets() functionC Standard Library Functions in CSyntax of function prototypeCalling a functionSyntax of function callFunction with arguments and a return valueDisplay Prime Numbers Between Intervals Using FunctionMultiply two Matrices by Passing Matrix to a FunctionParameters of printf() (C Programming)Return Type of printf() (C Programming)What are Python function attributes?Why point to a function?Typecasting Functions in CThe atoi() Functionstrcpy() functionThe itoa() Function
List of all Keywords in C Language
C Unions in C
scanf()printf() (C Programming)Syntax of Scanf()Precision in printf()Escape sequences in printf()Example of printf() in CWidth in printf()
C - PreprocessorsC - Working of PreprocessorC - Command Line Argumentspreprocessor directivesPreprocessor Directives in Cpreprocessor directiveThe Preprocessor Section
Display its own Source Code as Output

Welcome to C Programming

Use the sidebar to pick a level — Beginner, Intermediate, or Hard — then open any lesson. Each article has its own page with code examples.

Beginner

297 lessons

  • Hello World in C
  • Variables and Data Types
  • C Data Types in C
  • C Comments
Open Beginner →

Intermediate

216 lessons

  • Multidimensional array (Introduction)
  • Create struct variables
  • Using the Increment Operator in Loop
  • Constant Pointer to Variable
Open Intermediate →

Hard

42 lessons

  • C Bitwise Operators in C
  • C free()
  • C realloc()
  • Bitwise XOR (^) Operator (C Programming)
Open Hard →
← Back to all topics

About XQA

XQA is your trusted platform for quality content, professional insights, and valuable resources. We are dedicated to delivering excellence and empowering our community with knowledge and expertise.

Quick Links

  • Home
  • About
  • Blog
  • Contact
  • Practice
  • Learn

Contact Info

  • contact@xqa.io
  • +1 (555) 123-4567
  • 123 Business Street, Suite 100, City, State 12345

© 2026 xqa.io. All rights reserved.

Privacy PolicyTerms of Service