|
||||||
| 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-04-2008 at 11:38 PM. |
| 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 09:18 PM |
| Floating Point random number generator | Paradine | PHP Tutorials | 0 | 08-26-2007 02:09 PM |
| large floating point calculations | zeos386sx | General Programming | 5 | 04-02-2007 02:31 AM |
| John | ........ | 223.00000 |
| dargueta | ........ | 168.00000 |
| Xav | ........ | 164.00000 |
| LogicKills | ........ | 20.00000 |
| gaylo565 | ........ | 18.00000 |
| WingedPanther | ........ | 15.00000 |
| |pH| | ........ | 15.00000 |
| Johnnyboy | ........ | 3.00000 |
| navghost | ........ | 1.00000 |
Goal: 100,000 Posts
Complete: 67%