5 Questions
What is the new value of number after calling the function CubeByValue?
125
What is the output of the program when using the swap function with pointers?
7 3
How are array elements swapped in the bubbleSort function?
Using pointers and the * operator
In the separate function, what does the variable *signp store when the input value is negative?
'-'
What is the output of the program when using the sizeof function?
sizeof c = 1 sizeof(char) = 1 sizeof s = 2 sizeof(short) = 2 sizeof i = 4 sizeof(int) = 4 sizeof l = 4 sizeof(long) = 4 sizeof f = 4 sizeof(float) = 4 sizeof d = 8 sizeof(double) = 8 sizeof ld = 8 sizeof(long double) = 8 sizeof array = 80 sizeof ptr = 4
Test your knowledge of the programming process, C statements, and identifiers with this quiz. Learn about creating and editing programs, compiling, executing, C statements syntax, and identifiers usage.
Make Your Own Quizzes and Flashcards
Convert your notes into interactive study material.
Get started for free