How to generate random numbers in C++ with a range?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C++ Interview Questions

Write a C++ Program to Find Sum and Average of n numbers using for loop.

1 Answers  


What Are The Differences Between A C++ Struct And C++ Class?

2 Answers   Wipro,


Write a program to display the following output using a single cout statement Maths=90 Physics=77 Chemistry = 69

2 Answers  


What is the difference between creating an object, using 'new' and using 'malloc'?

3 Answers   HFG, Siemens,


How does free know the size of memory to be deleted

0 Answers  


How to stop class inheritance in C++ with condition that object creation should be allowed

0 Answers  


Explain the FOR loop with a help of a code.

0 Answers   Accenture,


Mention the default functions in C++, how would you detect that error has occurred inside the constructor and destructor.

0 Answers   Adobe,


Write a C++ Program to Check Whether a character is Vowel or Consonant.

2 Answers  


In C++ what do you mean by Inheritance?

0 Answers   Accenture,


What is constant keyword in C++? Illustrate its various uses.

0 Answers   Akamai Technologies, Infogain,


Identify the error in the following program. include<iostream> using namespace std; void main() { int num[]={1,2,3,4,5,6}; num[1]==[1]num ? cout<<"Success" : cout<<"Error"; }

1 Answers  


Categories