Cpp Programming 90 – Which of the following header file includes definition of cin and cout?
[B]. ostream.h
[D]. iostream.h
Answer: Option D
Answer: Option D
Answer: Option A
Answer: Option D
#include
long GetNumber(long int Number)
{
return --Number;
}
float GetNumber(int Number)
{
return ++Number;
}
int main()
{
int x = 20;
int y = 30;
cout<< GetNumber(x) << " ";
cout<< GetNumber(y) ;
return 0;
}
[A].The program will print the output 19 31.
[B].The program will print the output 20 30.
[C].The program will print the output 21 31.
[D].The program will print the output 21 29.
Answer: Option C
#include
#include
class IndiaBix
{
char str[50];
char tmp[50];
public:
IndiaBix(char *s)
{
strcpy(str, s);
}
int BixFunction()
{
int i = 0, j = 0;
while(*(str + i))
{
if(*(str + i++) == ' ')
*(tmp + j++) = *(str + i);
}
*(tmp + j) = 0;
return strlen(tmp);
}
};
int main()
{
char txt[] = "Welcome to IndiaBix.com!";
IndiaBix objBix(txt);
cout<< objBix.BixFunction();
return 0;
}
[A].1
[B].2
[C].24
[D].25
Answer: Option B
[B].
[C].
[D].
Answer: Option A
Explanation:
No answer description available for this question.
Answer: Option C