I am trying to understand the below program syntax with the structure.
struct virus
{
char signature[25] ;
char status[20] ;
int size ;
} v[2] = {
"Yankee Doodle", "Deadly", 1813,
"Dark Avenger", "Killer", 1795
};
main( )
{
int i ;
for ( i = 0 ; i <=1 ; i++ )
printf ( "\n%s %s", v[i].signature, v[i].status ) ;
}
What does v[2]
means here? I have never seen these kind of declarations before so bit of confuse over there. Can anyone explain me what does v[2]
means here?