Hi Friend Try this Piece of Code:: :)
int main()
{
printf("Size of int : %d bytes\n",sizeof(int));
printf("Size of short int : %d bytes\n",sizeof(short int));
printf("Size of long int :...
Type: Posts; User: shine_babu; Keyword(s):
Hi Friend Try this Piece of Code:: :)
int main()
{
printf("Size of int : %d bytes\n",sizeof(int));
printf("Size of short int : %d bytes\n",sizeof(short int));
printf("Size of long int :...
Hi
try the following code
int arr[4][4] = {
{1, 2, 3, 4},
{6, 7, 8, 9},
{3, 2, 8, 10},
{5, 6, 7, 8}
};
// to access and print the elements without using the indexes.
The allocated memory will last till you process ends. But this is not a good practice, u shuld deallocate the memory what u allocate else it can cause memory leak and your system will crash