Millionaire Mode

C#, Java, and C++ Programming Concepts

Question 1 of 20

I have a function declaration like this(in C/C++).const int f(int* a){ ..... // Do something here return *a; }what is the purpose of the keyword const here?

  1. It is just a fancy keyword, No purpose here
  2. Prevents the compiler from assigning the function as an rvalue
  3. Prevents the compiler from assigning the function as an lvalue
  4. It makes sure that the return value is a const and is not changed by anyone else

Prize Money

15₹7 Crores
14₹1 Crore
13₹50,00,000
12₹25,00,000
11₹12,50,000
10₹6,40,000
9₹3,20,000
8₹1,60,000
7₹80,000
6₹40,000
5₹20,000
4₹10,000
3₹5,000
2₹2,000
1₹1,000