#Variables not acting right according to my knowledge

1 messages · Page 1 of 1 (latest)

gloomy patio
#

I am practicing variables and It was working just fine until I added the third one being email.
Now even when removing a line or 2, I think this should be working, and Im not sure why Its not. Its telling me I need a ; at the end of line 11 but I already do.

green ingotBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.

gloomy patio
#

#include <stdio.h>

int main(void){

//variable practice

char name[] = "Chad Cena";
char foods [] = "pizza";
char email [] = "[email protected]"

printf("Hello %s\n", email);
printf("Your favorite food is %s\n", foods);

return 0;

}

ornate pagoda
#

Missing ;.

gloomy patio
#

Wait I think I see it already, theres no ; on the email section let me see

#

!solved

green ingotBOT
#

Thank you and let us know if you have any more questions!

This thread is now set to auto-hide after an hour of inactivity

torn jackal
#

you need char** for multiple

#

or char[][]