How to access integer no?

Recommended Answers

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 developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.