Error: 'for' loop initial declaration used outside c99 mode
What is wrong with this in c?
for(int i=0;i<n;i++){
....
}
this for loop is allow in c++ or in java, but if you compile your c code with gcc you will get the error:
'for' loop initial declaration used outside c99 mode
to resolve this problem just declare your variable before of you 'for loop' like
int i;
for(i=0;i<n;i++){
...
}
Similar entries
- Image watermark with PHP
- How to exit from fullscreen mode of Putty ?
- Ajax Error when using Drupal with Firefox
- CSS vertical text for mozilla-firefox?
- Magento admin login issue {{base_url}} is not recommended
- Facebook error
- Connection problem or invalid MMI code
- Failed to save mount : Mount failed :
- Iran Elections in PHP / Computer Language
- Attempting to pop table window
- Convert Windows 7 to XP Mode
- how to create 64 bit int, unsigned long long variable with c++
- E: Sub-process /usr/bin/dpkg returned an error code (1)
- List of all SwishMax3 effects
- Adobe Flash CS4 cannot be installed (Creative Suite 4 Master Collection)
- How to setup auto_prepend_file with safe mode and open basedir restriction
- Notepad++ FTP problem (NPPFtp doesnt work under Windows7)
- How do I secure my web site?
- Unable to send e-mail. Please contact the site admin, if the problem persists (Drupal Error)
- [Howto Fix] Table './eximstats/sends' is marked as crashed and should be repaired

Comments
Post new comment