Search found 1 match

by wombat80
Mon Nov 25, 2002 5:14 am
Forum: Volume 7 (700-799)
Topic: 713 - Adding Reversed Numbers
Replies: 142
Views: 60658

In a block in C you have to declare all the types at the begining.
So the fragment:
[c]int len = strlen(s);
int i,j;
j = 0;
int tem ; [/c]
would give an error on the second line because it is not expecting type information once the code has begun. However, in C++ you can declase types anywhere ...

Go to advanced search