C Programming and Technical

Q. How are pointer variables initialized?

A. Pointer variable are initialized by one of the following two ways
- Static memory allocation
- Dynamic memory allocation

Read Solution (Total 0)

C Other Question

output?
Q. How does a C program come to know about command line arguments?

A. When we execute our C program, operating system loads the program into memory. In case of DOS, it first loads 256 bytes into memory, called program segment prefix. This contains file tables,environment segment, and command line information. When we compile the C program
the compiler inserts additional code that parses the command, assigning it to the argv array, making the arguments easily accessible within our C program
Q. What is modular programming?

A. If a program is large, it is subdivided into a number of smaller
programs that are called modules or subprograms. If a complex
problem is solved using more modules, this approach is known as
modular programming