To create random numbers between 28 and 52 inclusive, use the formula
int number - 28 = rand()%52;
int value = 1+rand()% 28;
int random- value=28+rand()%24;
int rand-num=28+rand(0%25);
What is the use of strcat()?
String
Concatenating two strings
Comparison of string
Change string
Strcmp() is for .
Converts string
Compares two strings
Change into lowercase
Change into uppercase
Which of the following code will ensure that a different random sequence will occur with each run of the program in the visual C++ programming language?
int number = 2+rand()%5;
randmize();
randomize(timer);
srand (time(NULL));
What converts its arguments to uppercase letter if its argument is a letter
isupper
islower
toupper()
tolover()
Name the header file, to which the function strcpy() belongs to:
iomanip.h
conio.h
string.h
math.h
Name the header file that includes log()
Math.h
ctype.h
log.h
iostream.h
which is the character function which checks whether its argument is a lower case letter or not.
isalnum()
islower()
isdigit()
isalpha()
The built-in library function srand() is
Used to set the string seed for generating random values
Used to generate random values
Used o generate a special random values
Used to force a duplication of the random sequence pattern