I thought one could initialize several variables in a for
loop:
for (int i = 0, char* ptr = bam; i < 10; i++) { ... }
But I just found out that this is not possible, gcc gives the following error:
error: expected unqualified-id before 'char'
Is it really true that you can't initialize variables of different types in a for
loop?