Which character ends most statements in C?
AnswerSemicolon (;)
C uses the semicolon as a statement terminator, so forgetting one is a classic compile error.
Coding · Facts & stats
7 fact-checked facts about the C programming language, each with the reason behind it. 5 more are in today's round and join this page after it closes.
AnswerSemicolon (;)
C uses the semicolon as a statement terminator, so forgetting one is a classic compile error.
Answer0
C arrays are zero-indexed, so an array of 10 elements uses indexes 0 through 9.
AnswerA memory address
A pointer holds the location of another value, which you reach by dereferencing it.
Answer&
Writing &x yields the address of x, which can then be stored in a pointer.
Answer%d
%d prints a signed decimal integer, while %s is for strings, %f for floating-point and %c for characters.
AnswerB
C grew out of a simpler, typeless language used on early Unix systems, adding data types and more.
Answermalloc and free
One requests a block of memory at runtime and the other returns it; forgetting to release memory causes leaks.