Sail E0 Webinar
Question

What are the following two notations of defining functions commonly known as :

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


Options:
A .  1. KR Notation 2. ANSI Notation
B .  1. Pre ANSI C Notation 2. KR Notation
C .  1. ANSI Notation 2. KR Notation
D .  1. ANSI Notation 2. Pre ANSI Notation
Answer: Option C

The first one is known as ANSI notation and the second one is known as kernighan and Ritchie or  simply K&R notation.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers