STL (140)
OOPS (873)
C++ General (2409) Q1 On the screen how do you write the following words? she sells seashells by the seashore (a) all in one line (b) in three lines Q2 Write a program that asks interactively the user’s name and age and responds with Hello name, next year you will be next_age. where next_age is age + 1 Q3 For the different values of n, what is the output? printf(“%x %c %o %d”,n,n,n,n); (a) n = 67 (b) n = 20 (c) n = 128 (d) n = 255 (e) n = 100 Q4 What will be the output of the following program? int main() { char a,b,c; scanf(“%c %c %c”,&a,&b,&c); printf(“a=%c b=%c c=%c”,a,b,c); return 0; } [Note: The user input is:ABC DEF GHI]
1 1969Identify the error in the following program.
#include
Write a program to display the following output using a single cout statement Maths=90 Physics=77 Chemistry = 69
2 2082Write a program to read two numbers from the keyboard and display the larger value on the screen
1 1087
I was a c++ code and was asked to find out the bug in that. The bug was that he declared an object locally in a function and tried to return the pointer to that object. Since the object is local to the function, it no more exists after returning from the function. The pointer, therefore, is invalid outside.
Can we define function inside main in c++?
Which operator cannot be overloaded c++?
Explain the properties and principles of oop.
What is c++ used for in games?
Explain deep copy and a shallow copy?
How many times will this loop execute? Explain your answer.
What is the use of main function in c++?
Why do we use encapsulation in oops?
What is conversion constructor in C++
What is encapsulation example?
Difference between class and structure.
What is const in c++?
What is the difference between an ARRAY and a LIST in C++?
What is meant by stl in c++?