#Variables not acting right according to my knowledge
1 messages · Page 1 of 1 (latest)
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.
#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;
}
Missing ;.
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
thats 1 food
you need char** for multiple
or char[][]