Geeks Talk

Prepare for your Next Interview




Type of Error for Variables not declared in function

This is a discussion on Type of Error for Variables not declared in function within the C and C++ forums, part of the Software Development category; While writing a function if suppose the programmer does not declare the variables used in the function then will it give a compile time error or a runtime error....


Go Back   Geeks Talk > Software Development > C and C++

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 07-12-2006
Contributing Member
 
Join Date: May 2006
Posts: 79
Thanks: 0
Thanked 5 Times in 4 Posts
fred is on a distinguished road
Type of Error for Variables not declared in function

While writing a function if suppose the programmer does not declare the variables used in the function then will it give a compile time error or a runtime error.
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-12-2006
Contributing Member
 
Join Date: May 2006
Posts: 84
Thanks: 0
Thanked 9 Times in 6 Posts
timmy is on a distinguished road
Re: Type of Error for Variables not declared in function

It would give compile time error also it is essential that the declaration is made before the braces of the function.
Reply With Quote
Reply

  Geeks Talk > Software Development > C and C++


Thread Tools
Display Modes


Similar Threads

Thread Thread Starter Forum Replies Last Post
Usage of function janelyn C and C++ 2 11-12-2006 03:11 PM
WebSphere V5.0 : Use search function Lokesh M Web Tools 0 06-02-2006 09:15 AM


All times are GMT -4. The time now is 01:46 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved