Basic Concept
# include<stdio.h>
void main()
{ int p;
p = (1,2,2,100,1);
printf("%d",p);
}
I dont know what will be the output . Can anyone please tell me what exactly second line implies ?? :rolleyes:
harshchandra
Junior Poster in Training
68 posts since Nov 2004
Reputation Points: 7
Solved Threads: 1
if p were an array, then the initializer list would have to be in braces, not parentheses, like this
int p[] = {1,2,2,100};
But the above is entirely different than the code you originally posted.
Ancient Dragon
Retired & Loving It
30,046 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,342
parentheses are required as shown in previous posts.
Ancient Dragon
Retired & Loving It
30,046 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,342