Home C C++ Java Python Perl PHP SQL JavaScript Linux Selenium QT Online Test

Home » Solved Programs » How does float array works

How does float array works in C programming

Declaration of float array in C programming:
float b[5]

It can be expalined as: b is an array of 5 float values. If float takes 4 bytes then this array will take 20 bytes of memory. b first element can be accessed using b[0], second element can be accessed using b[1], and so on.. here 0, 1 are known as index value.

All elements of b array are allocated on Stack area of memory.