Tuesday, July 9, 2019

c interview questions 19

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


int a=5;
void func(void );

int main()
{
    func() ;
    printf ("%d\n", a);
    return 0;
}

void func (void)
{
int a=2;
printf ("%d\t", a);
}

output::
2       5

No comments:

Post a Comment

python class topic video