0% found this document useful (0 votes)
4 views2 pages

C Programming Notes

The document provides notes on C programming, covering basics such as functions, control statements, and pointers, along with other concepts like parameter passing and recursion. It includes a simple C program example and explanations of variables, their syntax, and rules. Reference books by Dennis Ritchie and Yashavant Kanetkar are also mentioned.

Uploaded by

Smile Feather
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views2 pages

C Programming Notes

The document provides notes on C programming, covering basics such as functions, control statements, and pointers, along with other concepts like parameter passing and recursion. It includes a simple C program example and explanations of variables, their syntax, and rules. Reference books by Dennis Ritchie and Yashavant Kanetkar are also mentioned.

Uploaded by

Smile Feather
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

C Programming Notes

Programming Language (C)


Topics Covered:
- Basics: Functions, Control Statements (if-else, switch, loops)
- Pointers: Basics, Pointer to Pointer, Pointer to Array, Array of Pointers, Pointer to String,
Pointer to Structures, Pointer to Function, Array of Function Pointers
- Other Concepts: Parameter Passing, Storage Classes, Static & Dynamic Scoping, Recursion

Reference Books:
- Dennis Ritchie
- Yashavant Kanetkar

First Program in C
#include <stdio.h>

int main()
{
printf("Welcome:");
printf("ACE Academy");
printf("\n\tProgramming Classes");
return 0;
}

Explanation
#include <stdio.h>: Preprocessor directive to include standard input-output library.
main(): Entry point of every C program.

Variables in C
A variable is a name of a memory location used to store data. Its value can change during
execution.

Syntax
type variable_list;

Examples
int a;
float b, c;
Rules for Variables
- Can contain alphabets, digits, and underscore.

Example Program
#include <stdio.h>

int main(void)
{
int a = 10;
float b2 = 3.5;
char c_1 = 'A';

printf("%d %f %c", a, b2, c_1);

return 0;
}

You might also like