Interview Questions  

Go Back   Interview Questions > Interview Questions & Answers > Information Technology > Programming Languages > C

C C Interview Questions, Learn by sharing C Interview Questions asked in various companies, Get Career advices, Interview Procedures from C experts, Post asked C Interview Questions and Answers.

   

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-02-2008, 11:46 AM
Senior Member
 
Join Date: Feb 2008
Posts: 9,095
Default Why doesn't C have nested functions

Why doesn't C have nested functions?

Reply With Quote
  #2 (permalink)  
Old 06-18-2008, 02:31 PM
Junior Member
 
Join Date: Jun 2008
Posts: 3
Default

defining a function inside another function is wrongly known as nesting of a function.th function inside is refered as the nested function but this is entirly a misconception.this is not a nested function but is known as lexical scoping.and lexical scoping is not allowed in c.because the compiler is unable to find the exact memory location which is defined inside.calling a function inside another function call is allowed.it is called nested function.
Reply With Quote
Reply

Tags
c language, interview questions

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On