Run Code
|
API
|
Code Wall
|
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
Dangling
Assignment 5 part 2 v2
150108_RecursivoPrimo
USO DEL strrchr()
array practice
Minus pointer
swipe the numbers in cyclic way
sum of arrays
WAP in C to print the reverse of a string
Poiter minus