Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Day 2 String Manipulation
#include <stdio.h> #define SIZE 30 int main(void) { // my array for the string char myString[SIZE]; int stringLength; 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 = i; printf("Length of %s is %d", myString, stringLength); } else { printf("Error reading in the string!\n"); } return 0; }
run
|
edit
|
history
|
help
0
B_141128_MatrizUnSoloIndice
18BCE2182 ASSESS_1 Q1-7
Project 4 v1
Función quicksort decreciente
18BCE2182 ASSESS_1 Q2-1
Lab 7 blackjack v0.6
Assignment 8
program1
hello 5
e