Examness
Free practice questions for every exam
EN
English
Log In
Sign Up
Home
Practice
Exams
AI Teachers
Interview
Code Lab
Fun Learn
Contact
💬
Give feedback
Code Lab
/
C
/
Beginner
Beginner C
2 exercises · in teaching order
1
Sum an array
Write `long sum_array(const int *a, int n)` returning the sum of the first `n` elements.
arrays
pointers
loops
8m
2
Your own strlen
Write `long my_strlen(const char *s)` returning the length of a C string, without calling `strlen`.
C strings
null terminator
8m
💬
Give feedback