Skip to content
Related Articles

Related Articles

C | Macro & Preprocessor | Question 14

Improve Article
Save Article
  • Difficulty Level : Easy
  • Last Updated : 28 Jun, 2021
Improve Article
Save Article




#include <stdio.h>
#define get(s) #s
  
int main()
{
    char str[] = get(GeeksQuiz);
    printf("%s", str);
    return 0;
}

(A) Compiler Error
(B) #GeeksQuiz
(C) GeeksQuiz
(D) GGeeksQuiz


Answer: (C)

Explanation: The preprocessing operator ‘#’ is used to convert a string argument into a string constant.

Quiz of this Question

My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!