Posts

Showing posts with the label Array

Array of Strings in C programming

Image
Array of Strings in C programming Size of an array: T he size of the  ss  array is 32 because it's an array of pointers to characters (i.e., strings). In C, the size of a pointer is typically 4 or 8 bytes, depending on the architecture (32-bit or 64-bit). I n your case, it seems like you're running this code on a 64-bit system, where the size of a pointer is 8 bytes. The  ss  array has 3 elements, each of which is a pointer to a string. So, the total size of the  ss  array is 4 *  8 = 32 bytes. This is why  sizeof(ss)  is32....

Popular posts from this blog

Callback function in JavaScript

Using Generic in TypeScript about types in the Code

12 Best Websites to Practice Coding for Beginners