Computer Sciences > GATE 2024 Set-2 > C Programming
Consider the following C function definition.
Which of the following statements is/are TRUE?
A
Assuming a character array c is declared as char c = "abcd" in main(), the function call fX(c) will always return a value
B
Assuming a character array c is declared as char c = "abcd" in main(), the function call fX("abcd") will always return a value
C
The code of the function will not compile
D
Assuming a character pointer c is declared as char *c = "abcd" in main(), the function call fX(c) will always return a value

Correct : a,d

Similar Questions

Consider the following two functions void fun1(int n){     if(n == 0) return;       printf(β€œ%d”, n);     fun2(n-2); &...
#175 MCQ
Consider the C functions foo and bar given below: int foo(int val) {     int x = 0;     while (val > 0)     {     &nbs...
#190 MCQ
What is printed by the following ANSI C program? #include<stdio.h> int main(int argc, char *argv[]) {     int a[3][3][3] =     {{...
#311 MCQ

Related Topics

No tags found

Unique Visitor Count

Total Unique Visitors

Loading......