Sh3ll
OdayForums


Server : Apache
System : Linux profile 3.10.0-1160.88.1.el7.x86_64 #1 SMP Tue Mar 7 15:41:52 UTC 2023 x86_64
User : apache ( 48)
PHP Version : 8.0.28
Disable Function : NONE
Directory :  /var/www/html/bibhas.ghoshal/lab_files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //var/www/html/bibhas.ghoshal/lab_files/va.c
// Program to print location of main and heap allocated value returned from malloc

#include <stdio.h>
#include <stdlib.h>

int main(int argc, char * argv[]) {

    printf("location of code : %p\n", main); 
    printf("location of heap : %p\n", malloc(100e6));

    int x=3;

    printf("location of stack: %p\n", &x);
    return x;

}

ZeroDay Forums Mini