Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

C++ General Interview Questions
Questions Answers Views Company eMail

Write a program to calculate the following i want a c++program for this condition 1+4+9+16+….+100 Like this (1^2+2^2) Hint use function pow(a,b)

HTC, TCS,

4 15793

what are difference between c and c++?

Accenture,

9 7110

how to access grid view row?

1459

how to create window program in c++.please explain.

Microsoft,

1 4630

founder of c++

Microtek, TCS, TeleCommand,

7 7892

How the memory management in vectors are being done. What happens when the heap memory is full, and how do you handle it ?

Yahoo,

1450

What is the best sorting algorithm, when there is a large amount of data, that cannot be fit in the main memory. ?

Yahoo,

1 5528

How do you initialize a class member, class x { const int i; };

emc2,

8 6181

advantages and disadvantages of using Borland C++ / version 5.

1 6771

Read the following program carefully and write the output of the program. Explain each line of code according to given numbering. #include #include #include #include 1……………… int main (void) { pid_t pid; 2………………………… pid = fork(); 3…………………………. if (pid > 0) { int i; 4………………………… for (i = 0; i < 5; i++) { 5………………… …………… printf(" I AM VU : %d\n", i); 6………………… …………… sleep(1); } exit(0); } 7………………… ……… else if (pid == 0) { int j; for (j = 0; j < 5; j++) { 8……………………………… printf(" I have no child: %d\n", j); sleep(1); } _exit(0); } else { 9………………………………fprintf(stderr, "can't fork, error %d\n", errno); 10……………… … ………… exit (EXIT_FAILURE); } }

1 2794

write a corrected statement so that the instruction will work properly. if (4 < x < 11) y = 2 * x;

1115

write a corrected statement in c++ so that the statement will work properly. x = y = z + 3a;

1067

Write a corrected statement in c++ so that the statement will work properly. if (4 < x < 11) y=2*x;

1117

Write a corrected statement in c++ so that the statement will work properly. if (x > 5); y = 2*x; else y += 3+x;

1 1740

Write a corrected statement in c++ so that the statement will work properly. if (x = y) x = 2*z;

2 2383


Post New C++ General Questions






Un-Answered Questions { C++ General }

What's c++ used for?

158


What is the latest version on c++?

198


write a c++ program to create class student having datamember name,Roll_no,age,and branch intilcization all the member using constructor print the all the details on the screen.

1734


What is type of 'this' pointer? Explain when it is get created?

178


Write a program to find the reverse Fibonacci series starting from N.

203






List the types of polymorphism in c++?

188


Explain all the C++ concepts using examples.

258


Explain what are mutator methods in c++?

157


Explain what are the sizes and ranges of the basic c++ data types?

194


How do you instruct your compiler to print the contents of the intermediate file showing the effects of the preprocessor?

180


What are the main features of c++?

162


Explain class invariant.

184


Write a program using GUI concept for the scheduling algorithms in Operating system like SJF,FCFS etc..

2953


Why we use #include iostream in c++?

150


Which sort does c++ use?

164