Introduction To C Programming Reema Thareja -

Arrays are collections of values of the same data type stored in contiguous memory locations. Here’s an example of declaring an array:

int x = 10; In this example, x is a variable of type int with a value of 10 . introduction to c programming reema thareja

int x = 10; int* ptr = &x; In this example, ptr is a pointer to an int variable x . Arrays are collections of values of the same