No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
I am Niranjan Yadla.Working as a Embedded Software engineer .I am proficient in C language.I would like to contribute different kind of C programs in this portal
- Interests
- Playing Cricket
Take 3X12 matrix and it is represented usingsingle diemensional array. input: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 Output: 24 25 … | |
Re:
Hi all. I'm trying to make a program where there is an array of 20 elements. Now, numbers from 1 to 20 will be assigned in a random order in the array. This is my code:- [code] #include<iostream.h> #include<conio.h> #include<stdlib.h> #include<time.h> void main() { int i,j,random_integer,count=0,sno[20]; srand((unsigned)time(0)); sno[0]=(rand()%20)+1; for(i=0;i<=19;i++) { … |