PRESENTED BY : ROHIT RAJ SINGH
6/24/2019 1SMS Institute of Technology, LUCKNOW
 Introduction of C ?
 Function used in C ?
 How to learn C language ?
 Which Special Symbol used in C ?
 Some necessary requirement for the
implementation of C program ?
 Instruction in C ?
 How to make a Program in C ?
 Interview FAQs ?
6/24/2019 2SMS Institute of Technology, LUCKNOW
 C is a programming language developed at
AT & T’s Bell Laboratories of USA in 1972.
 This language is designed and written by
Dennis Ritchie.
 In those days C has became a popular
language because It is reliable, simple, easy
to use.
6/24/2019 3SMS Institute of Technology, LUCKNOW
A function is a group of statements that together
perform a task. Every C program has at least one
function, which is main()
The basic function used in C are :-
 main()
 printf()
 scanf()
 strcat()
 memcpy()
6/24/2019 4SMS Institute of Technology, LUCKNOW
 The following block diagram show the steps
of learning C language :-
•Alphabets
•Numbers
•Special symbol
•Variables
•Keywords
•Constants
•Instructions
•Program
6/24/2019 5SMS Institute of Technology, LUCKNOW
 A character denotes any alphabet, digit or
special symbol used to represent
information.
• A, B, C,…………….Y, Z
• a, b,…………………y, zAlphabets
• 0,1,2,3,4,5,6,7,8,9Numbers
• , + - * / = ()
{} [] <>  ? ”
‘ : | _ & $ %
@ ~ # ^ ` ! ;
Special
symbol 6/24/2019 6SMS Institute of Technology, LUCKNOW
 Variables, constant and Keyword is some
necessary requirement for the successful
implimentation of C program.
 Let us now understand the meaning of each
of them.
 A variable is an entity that may change
where as, constant is an entity that does not
change. A keyword is a word that carries
special meaning.
6/24/2019 7SMS Institute of Technology, LUCKNOW
 A variable name is any combination of 1 to 31
alphabets, digits or underscores. You can
take variable name till the 31 character.
 The first character in the variable name must
be an alphabet or underscore.
 No commas or blanks and special symbol are
allowed within a variable name.
6/24/2019 8SMS Institute of Technology, LUCKNOW
 There are three types of instruction in C :-
1. Type Declaration Instruction
2. Arithmetic Instruction
3. Control Instruction
6/24/2019 9SMS Institute of Technology, LUCKNOW
 Type Declaration Instruction :
This instruction is used to declare
which type of variables used in C program.
 Arithmetic Instruction:
This instruction is used to perform
arithmetic operations on constant and
variables.
 Control Instruction :
This instruction is used to control the
sequence of execution of various
statements in a C program.
6/24/2019 10SMS Institute of Technology, LUCKNOW
#include<stdio.h>
int main(void)
{
printf(“hello, worldn”);
Printf(“Have a nice day.”);
return 0;
}
6/24/2019 11SMS Institute of Technology, LUCKNOW
Q/1.
Which of the following statement is a
declaration and which is a definition?
extern int i;
int j;
ANS.
First is declaration, second is definition.
6/24/2019 12SMS Institute of Technology, LUCKNOW
Q/2.
Input/output function prototypes and
macros are defined in which header file?
ANS.
stdio.h
Q/3.
What are stdin, stdout, stderr?
ANS.
Standard input, standard output, standard
error streams.
6/24/2019 13SMS Institute of Technology, LUCKNOW
Q/4.
What is the difference in the following
declarations?
const char *s;
char const *s;
ANS.
There is no difference.
Q/5.
Is it true that a function may have several
declarations, but only one definition?
ANS.
YES
6/24/2019 14SMS Institute of Technology, LUCKNOW
6/24/2019 15SMS Institute of Technology, LUCKNOW

C language

  • 1.
    PRESENTED BY :ROHIT RAJ SINGH 6/24/2019 1SMS Institute of Technology, LUCKNOW
  • 2.
     Introduction ofC ?  Function used in C ?  How to learn C language ?  Which Special Symbol used in C ?  Some necessary requirement for the implementation of C program ?  Instruction in C ?  How to make a Program in C ?  Interview FAQs ? 6/24/2019 2SMS Institute of Technology, LUCKNOW
  • 3.
     C isa programming language developed at AT & T’s Bell Laboratories of USA in 1972.  This language is designed and written by Dennis Ritchie.  In those days C has became a popular language because It is reliable, simple, easy to use. 6/24/2019 3SMS Institute of Technology, LUCKNOW
  • 4.
    A function isa group of statements that together perform a task. Every C program has at least one function, which is main() The basic function used in C are :-  main()  printf()  scanf()  strcat()  memcpy() 6/24/2019 4SMS Institute of Technology, LUCKNOW
  • 5.
     The followingblock diagram show the steps of learning C language :- •Alphabets •Numbers •Special symbol •Variables •Keywords •Constants •Instructions •Program 6/24/2019 5SMS Institute of Technology, LUCKNOW
  • 6.
     A characterdenotes any alphabet, digit or special symbol used to represent information. • A, B, C,…………….Y, Z • a, b,…………………y, zAlphabets • 0,1,2,3,4,5,6,7,8,9Numbers • , + - * / = () {} [] <> ? ” ‘ : | _ & $ % @ ~ # ^ ` ! ; Special symbol 6/24/2019 6SMS Institute of Technology, LUCKNOW
  • 7.
     Variables, constantand Keyword is some necessary requirement for the successful implimentation of C program.  Let us now understand the meaning of each of them.  A variable is an entity that may change where as, constant is an entity that does not change. A keyword is a word that carries special meaning. 6/24/2019 7SMS Institute of Technology, LUCKNOW
  • 8.
     A variablename is any combination of 1 to 31 alphabets, digits or underscores. You can take variable name till the 31 character.  The first character in the variable name must be an alphabet or underscore.  No commas or blanks and special symbol are allowed within a variable name. 6/24/2019 8SMS Institute of Technology, LUCKNOW
  • 9.
     There arethree types of instruction in C :- 1. Type Declaration Instruction 2. Arithmetic Instruction 3. Control Instruction 6/24/2019 9SMS Institute of Technology, LUCKNOW
  • 10.
     Type DeclarationInstruction : This instruction is used to declare which type of variables used in C program.  Arithmetic Instruction: This instruction is used to perform arithmetic operations on constant and variables.  Control Instruction : This instruction is used to control the sequence of execution of various statements in a C program. 6/24/2019 10SMS Institute of Technology, LUCKNOW
  • 11.
    #include<stdio.h> int main(void) { printf(“hello, worldn”); Printf(“Havea nice day.”); return 0; } 6/24/2019 11SMS Institute of Technology, LUCKNOW
  • 12.
    Q/1. Which of thefollowing statement is a declaration and which is a definition? extern int i; int j; ANS. First is declaration, second is definition. 6/24/2019 12SMS Institute of Technology, LUCKNOW
  • 13.
    Q/2. Input/output function prototypesand macros are defined in which header file? ANS. stdio.h Q/3. What are stdin, stdout, stderr? ANS. Standard input, standard output, standard error streams. 6/24/2019 13SMS Institute of Technology, LUCKNOW
  • 14.
    Q/4. What is thedifference in the following declarations? const char *s; char const *s; ANS. There is no difference. Q/5. Is it true that a function may have several declarations, but only one definition? ANS. YES 6/24/2019 14SMS Institute of Technology, LUCKNOW
  • 15.
    6/24/2019 15SMS Instituteof Technology, LUCKNOW