C Programming For Everyone That Nevver Works
C Programming For Everyone That Nevver Works
The increasing robust language which is written are efficient and fast
Structured programming
Procedural programming
Modular structure
Sample program
Print a statement
#include <stdio.h>;
int main () {
return 0;
keywords
auto, break, case, char, const, continue, default, do, double, else, Enum, extern, float, for, goto, if, long,
int, register, return, short, signed, sizeof, static, struct,
identifiers
constants
constants in C refers to fixed values that do not change during the execution of a program
integer constant
an integer constant refers to searice of digits which include decimal, octal, hexadecimal integers. and
non digit chars, ‘,’ spaces are not permitted in numbers.
p
Any number that can be represented by ( form or containing fractional parts) are called real numbers
q
We use these numbers as real constant in C.
e.g., 0.0083
e.g., ‘a’
string constant
e.g., “hello”
variable
data types
#include <stdio.h>
int main () {
int var;
printf ("hello world!");
return 0;
Return result;
#include <stdio.h>
//main function
Main () {
Scanf(num1);
Scanf(num2);
Sum=num1+num2;
Printf (sum);
#include <stdio.h>
Main () {
Int r, area=0;
Printf (“enter the radius: “);
Scanf (r);
Float pi=3.14;
Area=pi*r*r;