Answers for "write the data in perticulare memmory loaction in C"

C
0

write the data in perticulare memmory loaction in C

#include <stdio.h>
int main()
{
    int val;
    char *a;

    a = (char*)malloc(sizeof(char) * 1);

    *a = 20;
    val = (int)*a;
    printf("%d", val);

    free(a);

    return 0;
}
Posted by: Guest on April-28-2022

Code answers related to "C"

Browse Popular Code Answers by Language