R
raghu
What is the difference between
char a[10];
and
typedef character char [10]
character a;
char a[10];
and
typedef character char [10]
character a;
What is the difference between
char a[10];
and
typedef character char [10]
character a;
What is the difference between
char a[10];
and
typedef character char [10]
character a;
One compiles, the other does not.
Perhaps for the second you meant
typedef char character[10]; // words reversed, ; added
character a;
If so, the only difference is the way you spelled your code:
In both cases, `a' is an array of ten `char'.
What is the difference between
char a[10];
and
typedef character char [10]
character a;
Nick Keighley said:What is the difference between
char a[10];
and
typedef character  char [10]
character a;
even after your syntax errors are corrected it might be worth pointing
out you hardly ever want an array to be hidden in a typedef
What is the difference between
char a[10];
and
typedef character char [10]
character a;
One compiles, the other does not.
Perhaps for the second you meant
typedef char character[10]; // words reversed, ; added
character a;
If so, the only difference is the way you spelled your code:
In both cases, `a' is an array of ten `char'.
What is the difference between
char a[10];
and
typedef character char [10]
character a;
One compiles, the other does not.
Perhaps for the second you meant
typedef char character[10]; // words reversed, ; added
character a;
If so, the only difference is the way you spelled your code:
In both cases, `a' is an array of ten `char'.
your are right. I was in a hurry. Sorry about that.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.