Functions

Q1:
What is the notation for following functions?
1.  int f(int a, float b)
    {
        /* Some code */
    }

2.  int f(a, b)
    int a; float b;
    {
        /* Some code */
    }

A 1. Pre ANSI C Notation
2. KR Notation

B 1. ANSI Notation
2. KR Notation

C 1. KR Notation
2. ANSI Notation

D 1. ANSI Notation
2. Pre ANSI Notation

ANS:A - 1. KR Notation
2. ANSI Notation

KR Notation means Kernighan and Ritche Notation.



img not found
img

For help Students Orientation
Mcqs Questions

One stop destination for examination, preparation, recruitment, and more. Specially designed online test to solve all your preparation worries. Go wherever you want to and practice whenever you want, using the online test platform.