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
Lab6 v1.3Sin,cos,tan,cot
Smartprix coding
printing float 3 pointers
18BCE2182 ASSESS_1 Q1-6
Project 3 Part 1 v1.0
pointer1
A_141205_Palindromo
pointer_swap
Multiple if statement v0.8
Instruction order in C/C++