To what value are pointers initialized? 1) NULL 2) Newly allocated memory 3) No action is taken by the compiler to initialize pointers.
4 9948Which of the following sorts is quickest when sorting the following set: 1 2 3 5 4 1) Quick Sort 2) Bubble Sort 3) Merge Sort
7 16935Which of the following data structures is on average the fastest for retrieving data: 1) Binary Tree 2) Hash Table 3) Stack
3 13866Evaluate the following: int fn(int v) { if(v==1 || v==0) return 1; if(v%2==0) return fn(v/2)+2; else return fn(v-1)+3; } for fn(7); 1) 10 2) 11 3) 1
6 20564True or false: If you continuously increment a variable, it will become negative? 1) True 2) False 3) It depends on the variable type
7 16663Which of the following is not a valid declaration for main ()? 1) int main() 2) int main(int argc, char *argv[]) 3) They both work
2 13183void swap(int a,int b) { a=a+b; b=a-b; a=a-b; } in this code always gives the same result for all case
9 19072if a five digit number is input through the keyboard, write a program to calculate the sum of its digits. (hint:-use the modulus operator.'%')
23 81510Write a program or provide a pseudo code to flip the 2nd bit of the 32 bit number ! (Phone Screen)
1 7012
What are the 4 types of unions?
What does nil mean in c?
What is meant by realloc()?
Explain the use of bit fieild.
What is output redirection?
What is union in c?
What is const and volatile in c?
Explain what header files do I need in order to define the standard library functions I use?
How do you use a pointer to a function?
Suppose we have a table name EMP as below. We want to perform a operation in which, I want to change name ‘SMITH’ from as ‘SMITH JAIN’. Also I want to change the name of the column from ENAME to E_NAME. EMPNO ENAME JOB MGR HIREDATE SAL 7369 SMITH Coder 7902 17-DEC-80 800 7499 ALLEN SALESMAN 7698 20-FEB-81 1600 7521 WARD SALESMAN 7698 22-FEB-81 1250
If the size of int data type is two bytes, what is the range of signed int data type?
What is advantage of pointer in c?
What is the difference between declaring a variable and defining a variable?
What does #pragma once mean?
What do you mean by dynamic memory allocation in c? What functions are used?