ft_ultimate_ft.c
This commit is contained in:
parent
475f0e4ba7
commit
e6e33e4160
|
@ -0,0 +1,48 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* ft_ultimate_ft.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: tischmid <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2023/03/19 04:55:47 by tischmid #+# #+# */
|
||||
/* Updated: 2023/03/19 05:07:53 by tischmid ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
void ft_ultimate_ft(int *********nbr)
|
||||
{
|
||||
*********nbr = 42;
|
||||
}
|
||||
|
||||
/* ////
|
||||
#include <stdio.h>
|
||||
|
||||
int main(void)
|
||||
{
|
||||
int *********ptr;
|
||||
int p0;
|
||||
int *p1;
|
||||
int **p2;
|
||||
int ***p3;
|
||||
int ****p4;
|
||||
int *****p5;
|
||||
int ******p6;
|
||||
int *******p7;
|
||||
int ********p8;
|
||||
|
||||
p0 = 40;
|
||||
p1 = &p0;
|
||||
p2 = &p1;
|
||||
p3 = &p2;
|
||||
p4 = &p3;
|
||||
p5 = &p4;
|
||||
p6 = &p5;
|
||||
p7 = &p6;
|
||||
p8 = &p7;
|
||||
ptr = &p8;
|
||||
ft_ultimate_ft(ptr);
|
||||
printf("%d\n", *********ptr);
|
||||
return (0);
|
||||
}
|
||||
*/ ////
|
Loading…
Reference in New Issue