Monday, July 8, 2019

c interview question8

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

func(int x,int y);
int main()
{
    int p=func(5,6);
    printf("%d",p) ;
    return 0;
}
func(int x,int y)
{
    int x=2;
    return x*y;
}

output::

error:: multiple declaration of x

No comments:

Post a Comment

python class topic video