Can you please explain the difference between using macro and inline functions?
No Answer is Posted For this Question
Be the First to Post Answer
When should we use container classes instead of arrays?
Explain selection sorting. Also write an example.
Explain the term memory alignment?
What are keywords in c++?
How do I tokenize a string in c++?
Write a function that swaps the values of two integers, using int* as the argument type?
Explain storage qualifiers in c++.
Why is null pointer used?
write a program that takes two numbers from user that prints the smallest number
Given an array of size N in which every number is between 1 and N, determine if there are any duplicates in it. You are allowed to destroy the array if you like. [ I ended up giving about 4 or 5 different solutions for this, each supposedly better than the others ].
I want to write a C++ language program that: 1. Reads in the size of a square from the screen; 2. Prints a hollow square of that size out of “-“, “|” and blanks on screen; 3. Prints the same hollow square onto a text file. The program should work for squares of all side sizes between 1 and 20.
What are the static members and static member functions?