CodeX-API icon indicating copy to clipboard operation
CodeX-API copied to clipboard

impossibility to use pointers or anything that needs the adress of a variable in c

Open Etozinhachan opened this issue 2 years ago • 1 comments

its impossible to do so cause if we use the & character it just doesnt work and it ends the code at that points ( probably because after the & after the code is expecting the language ), so, its basicly impossible to do anything in C, am i just being dumb or is it really a bug?

(( without the scanf(\"%i\", &ia); part and the input=10 part the code works but i really need the input part for what im doing ))

"code=#include<stdio.h>\nint main(){\nprintf("meow");\nint ia = 0;\nscanf("%i", &ia);\n printf("%i", ia);\n\n}\n&language=c&input=10"

image

Etozinhachan avatar Oct 22 '23 15:10 Etozinhachan

Its Working fine ,their is one DockerFile which handle the environment for compiling and proper execution of given code $ gcc -o test_program test_program.c $ ./test_program

Prakhar8958 avatar Jun 25 '24 18:06 Prakhar8958