|
||||||
| C and C++ C and C++ forum for discussing all forms of C except for C#. These languages are powerful low level languages used for creating Operating Systems, Device Drivers, compilers and much more. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
I have a code like this:
Code:
#include <stdio.h>
void main(){
float num[2],
int i = 0;
scanf("%f", &num[i]);
printf("%2.2f", num[i]);
}
What's the probem with this? Last edited by v0id; 03-05-2008 at 12:38 AM. |
| Sponsored Links |
|
|
|
|||
|
You first line should be float num[2];. You put a comma instead of a semicolon.
|
|
|||
|
I'm sorry about typing error. I did see that. I have resolved the issue. Thanks to all.
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [ C++ ] Drawing Program. | Max_Payne | C and C++ | 6 | 01-23-2008 10:18 PM |
| Floating Point random number generator | Paradine | PHP Tutorials | 0 | 08-26-2007 03:09 PM |
| large floating point calculations | zeos386sx | General Programming | 5 | 04-02-2007 03:31 AM |
| WingedPanther | ........ | 2753.6 |
| Xav | ........ | 2704 |
| Brandon W | ........ | 1702.32 |
| John | ........ | 1207.73 |
| marwex89 | ........ | 1175.24 |
| morefood2001 | ........ | 966.05 |
| dcs | ........ | 655.75 |
| Steve.L | ........ | 475.59 |
| orjan | ........ | 418.58 |
| Aereshaa | ........ | 383.54 |