c - What i = 1, 23 ;means. -


this question has answer here:

this funny thing happened when make mistake .

i write :

int i; i = 1;

but is

int ;i = 1 ,23;(i guess sometime click middle button of mouse) .

then compiled program gcc , went through without warning or error!

and after notice . try int = 1,23; , , compile give error:

error: expected identifier or ‘(’ before numeric constant 

so ,why first time compile suceessful ?

and why give me error second time?

what ", 23" means?

thanks in advance.


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -