Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

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;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #write #data #perticulare #memmory #loaction #C
ADD COMMENT
Topic
Name
5+2 =