Explanation:
Upon finishing execution of a program, the operating system receives a return value of 0.
17) Who is known as the founder of C language?
- James Gosling
- Martin Richard
- Brian Kernighan
- Dennis Ritchie
Explanation:
The C programming language was created by Dennis Ritchie in 1972 during his time at AT&T Bell Laboratories.
18) The C variables are case insensitive.
- True
- False
Explanation:
C variables are sensitive to case, which implies that variables like sal, Sal, and SAL are distinct in C programming.
19) A character variable can store ___ character(s) at a time.
- NULL
Explanation:
A character variable has the capability to hold just a single character at any given moment. When the specified statements are run, the variable ch actually holds the ASCII value of 'A', which is 65, rather than the character constant itself.
char ch;
ch= 'A';
20) How would you round off a value from 1.66 to 2.0?
- floor(1.66)
- ceil(1.66)
- roundup(1.66)
- roundto(1.66)
Explanation:
The ceil(1.66) function is employed to round up a value from 1.66 to 2.0. This function returns the nearest whole number greater than or equal to the input value, while the floor function returns the nearest whole number less than or equal to the input value.
/* Example for floor() and ceil() functions:*/
#include<stdio.h>
#include<math.h>
int main()
{
printf("\n Result : %f" , ceil(1.44) );
printf("\n Result : %f" , ceil(1.66) );
printf("\n Result : %f" , floor(1.44) );
printf("\n Result : %f" , floor(1.66) );
return 0;
}
// Output:
//Result : 2.000
//Result : 2.000
//Result : 1.000
//Result : 1.000