Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

C | Data Types | Question 6

  • Difficulty Level : Basic
  • Last Updated : 28 Jun, 2021

Output?

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.




int main()
{
    void *vptr, v;
    v = 0;
    vptr = &v;
    printf("%v", *vptr);
    getchar();
    return 0;
}

(A) 0
(B) Compiler Error
(C) Garbage Value


Answer: (B)

Explanation: void is not a valid type for declaring variables. void * is valid though.

Quiz of this Question

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!