Skip to content
Snippets Groups Projects

Test_VVSS

  • Clone with SSH
  • Clone with HTTPS
  • Embed
  • Share
    The snippet can be accessed without any authentication.
    Authored by Tobias Haupt
    Edited
    Prak4_3.c 248 B
    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    
    int main() {
    char *data = (char *)malloc(10);
    strcpy(data, "Hello");
    
    for (int i = 0; i <= 10; i++) {
        data[i] = 'a'; 
    }
    
    if (data[0] == 'a') {
        return 1; 
    }
    
    free(data);
    return 0;
    }
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment