Identify the error in this code ?

Identify if I use the typedef statement like the one below , will it produce an error ?

Typedef char str
//And then using it to create a string ,
str fun[80] ;

Or

Typedef char str[80]
str fun ;

Which one is right ?
Should I mention the size of the string in the typedef statement or is ok if I do the way i did above ?

2014-03-25T10:50:13Z

@roger that was a typing error , auto capitalization by apple. Thank you for your answers , i hope I get marks for it !

Vlar2014-03-25T09:07:35Z

Favorite Answer

Both are right and will compile.

?2014-03-25T16:19:09Z

neither is correct
Typedef is an error
typedef is correct

if you use typedef instead of Typedef then they both work...
#include <stdio.h>
#include <string.h>
typedef char str[80];
int main(void)
{
str fun ;
strcpy(fun,"testing");
printf("%s %d",fun,sizeof fun);
return 0;
}