Saturday, September 6, 2014

Difference Between char a[]; and char[] a;

Difference Between char a[]; and char[] a;

you know is there any difference between above of two Array deceleration ... or it is right or wrong 
.
so the answer is its right and have a little difference

char a[]; 

means the variable 'a' is an array of character type of undefined size ..

char[] a; 

 also means the same but the difference is that if v put some other variable after a like

char[] a,b,c;

 then all of them are declare as an array of undefined size ..that's simple :)

Also see: File Handling in C language

Share this

0 Comment to "Difference Between char a[]; and char[] a;"