Skip to content
Related Articles

Related Articles

Improve Article

C | Macro & Preprocessor | Question 14

  • Difficulty Level : Easy
  • Last Updated : 28 Jun, 2021
Geek Week

#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

Take a step-up from those “Hello World” programs. Learn to implement data structures like Heap, Stacks, Linked List and many more! Check out our Data Structures in C course to start learning today.
My Personal Notes arrow_drop_up
Recommended Articles
Page :