Visvesvaraya Technological University Belgaum, Karnataka, India
Bachelor Of Engineering (CPP001)
Resume
Summary C Programming complete notes
3 vues 0 fois vendu
Cours
Bachelor Of Engineering (CPP001)
Établissement
Visvesvaraya Technological University Belgaum, Karnataka, India
This is a complete C programming Theory to Practical Research notes with clear theoretical explanations and practical examples. Providing code snippets, diagrams, and real-world scenarios that can enhance your learning experience.
Here's a general outline of the content and topics covered in the n...
Visvesvaraya Technological University Belgaum, Karnataka, India
Bachelor Of Engineering (CPP001)
Tous les documents sur ce sujet (30)
Vendeur
S'abonner
amanulhaque1298
Aperçu du contenu
COMPLETE C PROGRAMMING PRACTICAL THEORY
Learn C, with Amanul Haque[BE-EEE_VTU] and Watch the Path to Mastery Unfold
General syntax of C-programing
< HEADER FILE >
<USER DEFINED FUNCTION>
INT MANIN()/
VOID MAIN()
OPEN BRACES {
<VARIABLE DECLARATION>
<PRINTF() & SCANF()>
GETCH()
CLOSED BRACES}
, COMPLETE C PROGRAMMING PRACTICAL THEORY
Learn C, with Amanul Haque[BE-EEE_VTU] and Watch the Path to Mastery Unfold
page no.
1. Introduction………………………………………………………………………………..4
2. Header file…………………………………………………………………………………..4
a) GS to declare header file…………………………………………………………4
b) Input functions……………………………………………………………………….5
c) output functions……………………………………………………………………..5
d) printf() function …………………………………………………………………….5
e) scanf() function …………………………………………………………………….6
f) comments ………………………………………………………………………………6
3. User-defined function ……………………………………………………………………7
4. int main() and void main() ……………………………………………………………7
5. Data type ………………………………………………………………………………………..7
a) Key Words …………………………………………………………………………….8
b) Identifier ………………………………………………………………………….8
c) Rules to make variables ………………………………………………………8
d) Types of Variable ………………………………………………………………...9
e) Escape sequence ………………………………………………….………10-11
6. Operators ………………………………………………………………………………12-13
a) Unary …………………………………………………………………………………13
b) Binary ……………………………………………………………………………….14
c) Ternary …………………………………………………………………………….14
d) Special ………………………………………………………………………………14
7. Control Structure ……………………………………………………………………….14
a) If Statement ……………………………………………………………………...14
b) If-else Statement …………………………………………………………….. 15
c) If-else if ladder …………………………………………………………………16
8. Switch case statement ……………………………………………………………….17
9. Looping ……………………………………………………………………………...…18-19
a) Elements of loop ……………………………………………………………….19
b) For loop ……………………………………………………………………………19
c) While loop ………………………………………………………………………20
d) Do-while loop ………………………………………………………………….20
e) Break statements ……………………………………………………………21
f) Continuous statements …………………………………………………...21
10. Array ……………………………………………………………………………………...22
a) Memory representation of Array ………………………………… 22
b) How to take input in Array ……………………………………………23
c) How to display the content of the array ………………………..23
, COMPLETE C PROGRAMMING PRACTICAL THEORY
Learn C, with Amanul Haque[BE-EEE_VTU] and Watch the Path to Mastery Unfold
11. Function ………………………………………………………………………………24
a) Function call …………………………………………………………….24
b) Return type function ………………………………………………..25
c) Parameters in Python function …………………………….….25
d) Ways of calling function ………………………………………….25
e) Recursion ……………………………………………………………26-27
12. Pointers ……………………………………………………………………………..28
a) Declaration of pointers ………………………………………...28
b) Dereferencing pointer variable …………………………… 28
13. String ……………………………………………………………………………29-31
a) GS to declare string ……………………………………………….31
b) Memory representation of a string ……………………...31
c) How to take input in string …………………………………..31
d) string function ……………………………………………………...32
14. Structure …………………………………………………………………..…33-34
a) GS to declare structure ………………………………………..34
b) Typedef keyword ………………………………………………..34
15. File handling ……………………………………………………………………35
a) File pointer ………………………………………………………...35
b) File handling function ………………………………………...35
16. Dynamic Memory Allocation ………………………………………36-37
a) Malloc() function ………………………………………………..37
b) calloc() function ………………………………………………..37
c) realloc() function ……………………………………………….37
d) free() function ……………………………………………………38
, COMPLETE C PROGRAMMING PRACTICAL THEORY
Learn C, with Amanul Haque[BE-EEE_VTU] and Watch the Path to Mastery Unfold
1. Introduction
C is a high-level, general-purpose programming language that was developed in the early 1970s
by Dennis Ritchie at Bell Labs. It is one of the most widely used and influential programming
languages and has had a significant impact on the development of many other languages.
2. < HEADER FILE >
Header file is a collection of functions that contain declarations and definitions of functions, constants,
data types, and other items that can be used in a C program.
Header files serve as a form of documentation for the functions and data structures provided by a
library or module. They allow programmers to use these functions and data structures without knowing
the implementation details. Instead, they only need to include the header file in their C source code.
Header files have the extension ".h"
The general syntax to declare Header file
[ #include<header file name.h> ]
preprocessor directive Extension of a header file
collection of function
In C, the #include is a preprocessor directive that instructs the compiler to include the contents of a
specified header file in the source code before the compilation process takes place. It allows you to use
functions, types, and macros defined in the included header file.
Example:
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
<stdio.h>: stands for "standard input-output.h." This header file contains functions for input and
output operations and is essential for interacting with the console and handling file input and output.
<stdlib.h>: It provides functions for general-purpose tasks, such as memory allocation.
<math.h>: It provides declarations and functions for mathematical operations and functions. When you
include "math.h" in your C program, you gain access to various mathematical functions such as
trigonometric functions, logarithmic functions, exponential functions, and more.
#include<math.h>
the preprocessor directive which tells the compiler to include the standard C library header file
"math.h" in the program.
Les avantages d'acheter des résumés chez Stuvia:
Qualité garantie par les avis des clients
Les clients de Stuvia ont évalués plus de 700 000 résumés. C'est comme ça que vous savez que vous achetez les meilleurs documents.
L’achat facile et rapide
Vous pouvez payer rapidement avec iDeal, carte de crédit ou Stuvia-crédit pour les résumés. Il n'y a pas d'adhésion nécessaire.
Focus sur l’essentiel
Vos camarades écrivent eux-mêmes les notes d’étude, c’est pourquoi les documents sont toujours fiables et à jour. Cela garantit que vous arrivez rapidement au coeur du matériel.
Foire aux questions
Qu'est-ce que j'obtiens en achetant ce document ?
Vous obtenez un PDF, disponible immédiatement après votre achat. Le document acheté est accessible à tout moment, n'importe où et indéfiniment via votre profil.
Garantie de remboursement : comment ça marche ?
Notre garantie de satisfaction garantit que vous trouverez toujours un document d'étude qui vous convient. Vous remplissez un formulaire et notre équipe du service client s'occupe du reste.
Auprès de qui est-ce que j'achète ce résumé ?
Stuvia est une place de marché. Alors, vous n'achetez donc pas ce document chez nous, mais auprès du vendeur amanulhaque1298. Stuvia facilite les paiements au vendeur.
Est-ce que j'aurai un abonnement?
Non, vous n'achetez ce résumé que pour €2,83. Vous n'êtes lié à rien après votre achat.