Quantcast
Channel: CodeChef Discuss - latest questions
Viewing all articles
Browse latest Browse all 40121

C Array Size

$
0
0

Whats the difference between doing a malloc and this code? ...to obtain an integer array of size n.

   int n;
   scanf("%d", &n);
   int arr[n];

Actually I was surprised that such a feature exists as it dosent exist in TurboC.Is it a new feature in gcc?


Viewing all articles
Browse latest Browse all 40121

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>