July 6, 2021 in C and CPP
Choose the option that contains only Unary operators of C.
1.2 Choose the option that contains only Unary operators of C.
A) sizeof, (type conversion)
B) short hand operator, &
C) increment(++), >=, !
D) ==, !=
July 6, 2021 in C and CPP
1.2 Choose the option that contains only Unary operators of C.
A) sizeof, (type conversion)
B) short hand operator, &
C) increment(++), >=, !
D) ==, !=
July 6, 2021 in C and CPP
1.1 Physically placing the machine instructions and data into main memory is done by
A) Linker
B) Loader
C) Code Generator
D) Interpreter
July 6, 2021 in C and CPP
c) Write a function to accept two strings as arguments. The function should return the index of the
second string in the first string, if it exists and -1 otherwise. Don’t use any library routines related
to strings.
July 6, 2021 in C and CPP
b) Differentiate between the following:
i) formal and actual arguments
ii) switch and if-else statement
July 6, 2021 in C and CPP
a) What is top-down approach to problem solving? What are its advantages?
July 6, 2021 in C and CPP
c) Write a program to add two matrices of size 3×3.
July 6, 2021 in C and CPP
b) What are the various storage classes available in ‘C’? Give one example of each.
July 6, 2021 in C and CPP
a) ‘C’ is a block structured language. What is the use of this? Give an example to illustrate this.
July 6, 2021 in C and CPP
c) Write and explain the basic ‘C’ language construct used for structured programming.
July 6, 2021 in C and CPP
b) List the various types of operators available in ‘C’. Write the hierarchical order of evaluation of
these.