My lecturer asked me to solve this problem ...
I was not able to solve this
if any one has a solution please post it ( with valid arguments )
I was not able to solve this
if any one has a solution please post it ( with valid arguments )
PHP:
#include <stdio.h>
#include <stdlib.h>
void foo(void);
int main (void)
{
int i=2;
foo();
printf ("%d\n",i);
return EXIT_SUCCESS;
}
void foo(void)
{
// add code so that printf above prints different value of i (other than 2)
}