cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Reading into the array number using poin
Reading into the array number using pointers
Oct 3, 2012 at 6:55am UTC
khaelly
(12)
i had try. But if it does not have en error i would not be here.
how to write a program that random number entering into the array number using pointers?
for example :
enter marks for day : 87
enter marks for day : 80
Oct 3, 2012 at 9:52am UTC
vlad from moscow
(6539)
1
2
3
4
5
int
a[10];
int
*p = a; *( p + std::rand() % 10 ) = rand();
Topic archived. No new replies allowed.