You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have written the code in lesson 9 just like described, but I am getting a question mark at the end of my name.
#include <stdio.h>
#include <stdlib.h>
int main()
{
int age;
int currentYear;
int birthYear;
currentYear = 2019;
birthYear = 1989;
age = currentYear - birthYear;
printf("Razvan is %d years old \n", age);
char name[6] = "Razvan";
printf("My name is %s \n", name);
name[3] = 'w';
printf("My name is %s \n", name);
char food[] = "bacon";
printf("The best food is %s \n", food);
strcpy(food, "sarmale");
printf("But not after %s \n", food);
return 0;
}
The text was updated successfully, but these errors were encountered:
I have written the code in lesson 9 just like described, but I am getting a question mark at the end of my name.
#include <stdio.h>
#include <stdlib.h>
int main()
{
}
The text was updated successfully, but these errors were encountered: