- ASystem Programming
- BApplication Programming
- CBoth A and B
- DNeither A nor B
Both A and B
System programming involves designing and writing computer programs that allow the computer hardware to interface with the programmer and the user, leading to the effective execution of application software on the computer system.
An application program is a comprehensive, self-contained program that performs a particular function directly for the user. Among many others, application programs include:
Because every program has a particular application for the end user, the term "application" is used. For instance, a word processor can help the user create an article, whereas a game application can be used for entertainment.
An application program is also known as an application or application software.
void swap(int a, int b) { int c; c=a; a=b; b=c; }2.
void swap (int a, int b) { a=a+b; b=a-b; a=a-b; }Solution2 is the best solution since no extra variable is required.
#
Answer: A
Explanation: The value of x
is first printed using printf
, and then incremented by the ++
operator. Therefore, the output will be 5.
Answer: D
Explanation: string is not a valid data type in C. Instead, strings are represented as arrays of characters in C.
Answer: B
Explanation: The if
statement checks if x
is greater than 10, which it is not. Therefore, the code inside the else
block is executed, resulting in the output "x is less than or equal to 10".
Answer: A
Explanation: The while
loop continues to execute as long as i
is less than 5. Inside the loop, the value of i
is printed using printf
, and then incremented by 1. Therefore, the output will be "0 1 2 3 4".