Tuesday, July 9, 2019

c interview question20

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

int main()
{
    int a=2,b=5;
    a=func(a+b,a-b);
    printf("%d\n",a);
    return 0;
}

func (int x, int y)
{ return x+y, x-y;}

output::
10

No comments:

Post a Comment

python class topic video