How to access integer no?

Recommended Answers

Could you specify what you mean by your question?
What you mean by accessing an integer, from a database,from a file from an array...

Jump to Post

All 3 Replies

Could you specify what you mean by your question?
What you mean by accessing an integer, from a database,from a file from an array...

file from array.

/*init integer array with 5 elements*/
int MyIntArray = { 12, 6, 42, 33, 81 };
/* 3th item in array is*/
int Nr3 = MyIntArray[2];
Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.