Generate intermediate files ( assembling, preprocessing) in gcc

Let’s start with some GCC commands as shown below. How-ever it won’t give you all the resulted files in each stage, for ex: preprocessor files. For that, I use below GCC option to generate different output files of my source. As mentioned in “man’ page it will generate “.i”, “s”, “.o” files .. Ex: #Examine …

Read more

Find integer array size in C programming

Someone asked me once “how can I get integer array size in C programming and use it in the code?”.Unfortunately there is no defined standard function to get that in C. Rather you could use below method .Suppose you have defined an integer array ( static ) called , int intArray[10];Its size can be derived …

Read more