Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
length
#include <stdio.h> #define SIZE 30 int main(void) { // my array for the string char myString[SIZE]; int stringLength=0; int i=0; printf("Example program for some string manipulations.\n"); // First read in an input string if (fgets(myString, SIZE, stdin)) { while(myString[i]!=0) { i++; } stringLength= printf("Length of %s us %d ", myString); } else { printf("Error reading in the string!\n"); } return 0; }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
02468
good Job
14th Dec Project1 v0.2
HW2A
TopTriangle.c
PtStrCpy
Star 1,3
SIGABRT error
la wea afortunada
CO Assignment 1 Question 2
Please log in to post a comment.