Commit 813ab56e authored by elijah vasquez's avatar elijah vasquez 🦍

why am i awake

parent bb9b68bf
File added
No preview for this file type
#include <stdio.h>
#include <string.h>
int main()
{
char word[] = "Skateboarding"; //2
printf("%d", strlen(word));
char str1[sizeof(word)]; //3
strcpy(str1, word);
printf("\n%s", str1);
char str2[] = "I hate ", str3[] = "programming"; //4
strcat(str2, str3);
printf("\n%s", str2, str3);
char str4[] = "yo", str5[] = "Yo"; //5
int compare = strcmp(str4, str5);
if (compare == 1)
printf("\nnot same");
else
printf("\nsame");
char str6[50]; //6
printf("\nEnter something: ");
scanf("%s", str6);
printf("\nbro said: %s", str6);
return 0;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment