Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
first C code
#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
Please
log in
to post a comment.
BST
B_141212_OrdenarArray
B_141121_factorial01
Présentation
CO_assign_q1
Lab 11 v1.0
Project 3 Part 1 v1.3
Print Micro Seconds
Nearly working
MEMORIA DINAMICA FUNCIONA
Please log in to post a comment.