
Question
Calculate the Number of Bytes Allocated for the Given Integer Variables using the Size() Operator.
Input Format
1<=StringLength<=100
Sample TestCase Expected Output
1. 124
Answer
#include <stdio.h>int main(){ int num,allocated; scanf("%d",&num); allocated = sizeof(num);
printf("%d",allocated); return 0;}
This comment has been removed by a blog administrator.
ReplyDelete