Home
|
Tech FAQ
|
Interview Questions
|
Placement Papers
|
Tech Articles
|
Learn
|
Freelance Projects
|
Online Testing
|
Geeks Talk
|
Job Postings
 |
Knowledge Base
 |
Site Search
|
Add/Ask Question
GeekInterview.com
>
Tech FAQs
>
OOPS
Print
|
Question
:
Why doesn't C have nested functions?
January 01, 2007 01:22:42
#5
priti
Member Since: Visitor Total Comments: N/A
RE: C Has Nested FunctionWhy doesn't C have nested functions?
#include<stdio.h>
int add(int a,int b)
{
int c=3;
int d=a+b;
int addToC(int c, int d )
{
printf("This is addToC.....n");
return(c+d);
}
return(addToC(c,d));
}
int main()
{
printf(" Addition %d n" ,add(1,2));
return 0;
}
Back To Question