How much maximum can you allocate in a single call to malloc()?
No Answer is Posted For this Question
Be the First to Post Answer
How can I disable the "echo" feature?
What is a driver program?
what is the diff b/n c and c++ a. dynamic scoping b. nested switching c. declaration of variables in any code block d. separation of compilation and linking
What does #define mean in c++?
In C++ cout is: a) object b) class c) something else
11 Answers Infosys, Lehman Brothers,
Is it possible to write a c++ template to check for a function's existence?
How is data hiding achieved in c++?
Differentiate between C and C++.
What is a type library?
What is c++ 11 and c++ 14?
Write a program which is required to process the time of a clock in hours and minutes, entered from the keyboard. With this program, there are two requirements for any data entered by a user: 1. The data must be of the correct type (in this case, two ints). 2. The data must be in the correct range: this means that, for the minutes, negative numbers and any number above 59 must be rejected; for the hours, negative numbers and any number above 23 must be rejected. Output error message for invalid data input. Output the time one and a half hour after the time input. i.e. Hour: 22 Min: 32 One and a half hour after 22:32 is 00:02
class X { public: int x; static void f(int z); }; void X::f(int y) {x=y;} What is the error in the sample code above? a) The class X does not have any protected members. b) The static member function f() accesses the non-static z. c) The static member function f() accesses the non-static x. d) The member function f() must return a value. e) The class X does not have any private members.