How can I get random integers in a certain range?


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

Post New Answer

More C Interview Questions

What is call by reference in functions?

1 Answers  


main() { char *ptr = "Ramco Systems"; (*ptr)++; printf("%s\n",ptr); ptr++; printf("%s\n",ptr); } Find the Outputs?

9 Answers   BTBP, CitiGroup,


Do you know the purpose of 'register' keyword?

0 Answers  


What is the restrict keyword in C?

2 Answers  


#include main() { char s[] = "Bouquets and Brickbats"; printf(" %c, ",*(&s[2])); printf("%s, ",s+5); printf(" %s",s); printf(" %c",*(s+2)); }

0 Answers   Wilco,


write a program that types this pattern: 12345678987654321 12345678 87654321 1234567 7654321 123456 654321 12345 54321 1234 4321 123 321 12 21 1 1

0 Answers  


f(*p) { p=(char *)malloc(6); p="hello"; return; } main() { char *p="bye"; f(p); printf("%s",p); } what is the o/p?

7 Answers   Hughes,


parkside's triangle.. create a program like this.. enter the size: 6 enter the seed: 1 output: 1 23 456 7891 23456 789123 sample2: enter the size: 5 enter the seed: 3 output: 3 45 678 9123 45678 parkside should not exceed 10 while its seed should only be not more than 9..

4 Answers  


Write a program for finding factorial of a number.

0 Answers   Tech Mahindra,


for (i <= 5 && i >= -1;++i; i > 0) { printf("%d ", i); }

1 Answers  


What is #define in c?

0 Answers  


how to find the size of the data type like int,float without using the sizeof operator?

13 Answers  


Categories