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

Explanation

Correct : a,d

Similar Questions

What is the worst-case time complexity of insertion in an AVL tree?
Question #23 Medium
Which operations on a binary search tree have O(h) complexity?
Question #31 Easy
Compare search complexities of sorted array vs balanced BST.
Question #47 Hard

Related Topics

Data Structures Binary Search Tree Time Complexity Algorithm Analysis Tree Algorithms Computer Science