Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CTasks1
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
elijah vasquez
CTasks1
Commits
813ab56e
Commit
813ab56e
authored
Jan 11, 2023
by
elijah vasquez
🦍
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
why am i awake
parent
bb9b68bf
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
0 deletions
+29
-0
morse.exe
morse.exe
+0
-0
printfDemo.exe
printfDemo.exe
+0
-0
strings_demo.c
strings_demo.c
+29
-0
strings_demo.exe
strings_demo.exe
+0
-0
No files found.
morse.exe
0 → 100644
View file @
813ab56e
File added
printfDemo.exe
View file @
813ab56e
No preview for this file type
strings_demo.c
View file @
813ab56e
#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
(
"
\n
not same"
);
else
printf
(
"
\n
same"
);
char
str6
[
50
];
//6
printf
(
"
\n
Enter something: "
);
scanf
(
"%s"
,
str6
);
printf
(
"
\n
bro said: %s"
,
str6
);
return
0
;
}
strings_demo.exe
0 → 100644
View file @
813ab56e
File added
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment