-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Open
Description
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;
Metadata
Metadata
Assignees
Labels
No labels
