i have a array called arr() of type byte.
one of my function returns an integer long value(val) 4 bytes.
i want devide this value into bytes and assign to arr()
that is
arr(1)=first byte of val
arr(2)=second byte of val
arr(3)=third byte of val
arr(4)=fourth byte of val
thank u in advance

Be a part of the DaniWeb community

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