Answer Posted / glibwaresoftsolutions
• Object-Oriented Programming: Encapsulation, Inheritance, Polymorphism.
• Memory management via pointers.
• Support for both high-level and low-level programming.
• Strong type checking.
• STL (Standard Template Library) for reusable components.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Explain union. What are its advantages?
Why are algorithms important in c program?
main(){char *str;scanf("%s",str);printf("%s",str); }The error in the above program is: a) Variable 'str' is not initialised b) Format control for a string is not %s c) Parameter to scanf is passed by value. It should be an address d) none
Why does this code crash?
What is a memory leak? How to avoid it?
How can you tell whether a program was compiled using c versus c++?
In C language, a variable name cannot contain?
What is #error and use of it?
Explain what is operator promotion?
Write a code of a general series where the next element is the sum of last k terms.
What is difference between main and void main?
the maximum length of a character constant can be a) 1 character b) 8 characters c) 256 chaacters d) 125 characters
Explain which function in c can be used to append a string to another string?
What are header files why are they important?
In this assignment you are asked to write a multithreaded program to find the duplicates in an array of 10 million integers. The integers are between -5000,000 to 5000,000 and are generated randomly. Use 10 threads, each thread works on 1000,000 integers. Compare the time needed to accomplish the task with single thread of execution program. Do not include the time to fill the array with integers in the execution time.