This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

difference b/w int[ ] a; and int a[ ];

 
Hussain
Ranch Hand
Posts: 110
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all ,,

quickly..
int i[],a,b,c;
a=1;//will compile as a is no a array bcoz int i[],a....
-----------------------------------------------------------------
int[] i,a,b,c;
a=1;//will not compile as a is an array their bcoz int[]i,a....

thankxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
------------------
Muhammad Hussain
 
Maulin Vasavada
Ranch Hand
Posts: 1873
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Muhammad,
i liked it. i didn't know that
regards
maulin
 
Mr Iftikhar
Ranch Hand
Posts: 39
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nice difference muhammad.
Thanks.
 
Mr Iftikhar
Ranch Hand
Posts: 39
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nice difference muhammad.
Thanks.
 
Fei Ng
Ranch Hand
Posts: 1244
1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
int i[],a,b,c;
a=1;//will compile as a is no a array bcoz int i[],a....
a is int here.
int[] i,a,b,c;
a=1;//will not compile as a is an array their bcoz int[]i,a....
i,a,b,c are all int array.
int i[],a[],b[],c[];
I usually code like that. It is clear.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic