Posts by Daniel_ • 27 points
2 posts
-
0
votes3
answers126
viewsA: Variable declared in main is not accessed inside another function
As other users have mentioned, you should declare the variable globally in this way #include <stdio.h> int numero = 1; void mostrarNumero(){ printf("retultado: %d", numero); } int main() {…
-
0
votes1
answer254
viewsQ: I need to prevent direct access (on a second page) in php
The question is a little confusing, but I’ll try to explain it as best I can. I have an apache2 server running on linux (Raspbian Stretch Lite) with php7.0 and the necessary mods. On the server has…