Podcast
Questions and Answers
What is the basic syntax for declaring a variable in C language?
What is the basic syntax for declaring a variable in C language?
- variableName : variableType;
- var variableName = variableType;
- variableName = variableType;
- variableType variableName; (correct)
Which data type is used to store whole numbers in C language?
Which data type is used to store whole numbers in C language?
- char
- double
- int (correct)
- float
What does the 'printf' function do in C language?
What does the 'printf' function do in C language?
- It writes output to the screen (correct)
- It stores data in variables
- It performs mathematical calculations
- It reads input from the user
Which symbol is used for the modulus operation in C language?
Which symbol is used for the modulus operation in C language?