Pps 2m Answers
Pps 2m Answers
Ans:-Every C program has a primary function that must be named main . The main
function serves as the starting point for program execution.
Ans:-The C language provides the four basic arithmetic type specifiers char, int, float and
double, and the modifiers signed, unsigned, short, and long.
Ans:-The link and definition sections are called as preprocessor directives. It gives instructions to the
compiler to link function from the system library.
== is an Equal To Operator in C and C++ only, It is Binary Operator which operates on two operands
Ans:- You can define a variable as an integer and assign a value to it in a single declaration. For
example: int age = 10; In this example, the variable named age would be defined as an integer and
assigned the value of 10.19
Ans:- Compiler: A compiler translates code from a high-level programming language into machine
code before the program runs.
Ans:- A multi-dimensional array is an array with more than one level or dimension.
Advantages: ➢ It is used to represent multiple data items of same type by using only single name.
➢ It can be used to implement other data structures like linked lists, stacks,
queues ,trees, graphs etc.
Ans:- Strings are sequences of characters enclosed in double quotes, used for handling text and
varying in length.
Characters, represented by single symbols in single quotes, are primitive data types primarily used
for storing and manipulating individual symbols.
2) Using loops, we do not need to write the same code again and again.
Ans:- The syntax for using the union keyword to define union is similar to that of constructing a
structure.
Ans:- The function can reduce the repetition of the same statements in the program
Ans:- The four main storage classes in C are automatic (auto), external (extern), static (static), and
register (register).
Ans:- Recursion means a function calls repeatedly. It uses system stack to accomplish its task.
> Memory size can be changed based on the requirements of the dynamic memory allocation.
Ans:-
Function
fopen
fprintf
fputc1
fputs1