Escolar Documentos
Profissional Documentos
Cultura Documentos
ANDHRA PRADESH
Name : Murali Krishna Chintala
Designation : Lecturer in CME
Branch : Computer Engineering
Institute : SUVR & SR GPW, Ethamukkala
Year/Semester : III Semester
Subject Name : UNIX & C
Subject Code : CM – 304
Major Topic : Understand Modular Programming
Duration : 50 Min
Sub Topic : Function prototype
Teaching Aids : PPT, Animations
CM304.64 1
Objective
CM304.64 2
Recap
CM304.64 3
Function prototype
• Types of arguments.
CM304.64 4
Function prototype
Syntax
• Return_ type function_name(dt1,dt2..dtn);
CM304.64 5
Function prototype
Example:1
#include<stdio.h>
int big(int,int,int);/*function proto type*/
main()
{
int a,b,c;
scanf(“%d%d%d”,&a,&b,&c);
printf(“biggest is:%d”,big(a,b,c));
}
CM304.64 6
Function prototype
Contd..
CM304.64 8
QUIZ
1. Function proto type tells the compiler..
e) Types of arguments
CM304.64 9
QUIZ
Types of arguments
c) Function calls
e) Recursive calls
g) None
CM304.64 11
QUIZ
2. Compiler uses function proto types to validate.
System calls
Function calls
Recursive calls
None
CM304.64 12
Frequently Asked Questions
CM304.64 13