Monday, July 8, 2019

c interview questions 11

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

int main()
{
   int func(int a,int b);
   {
       return (a+b);
   }
    int c;
    c=func(3,5) ;
    printf("%d",c) ;
}

output::

//We'll get errors because a function definition can't be written inside definition of another function.

No comments:

Post a Comment

python class topic video