0

What is the Output of the program?

#include <stdio.h> int p=20; int main(){ int p=10; printf("%d", ::p); return 0; } ================== What is the meaning of "::p" mainly here???

25th Dec 2020, 3:19 PM
Arun Bhattacharya
Arun Bhattacharya - avatar
1 Answer
+ 3
:: is a scope resuluation operator used to access global scope variable when local variable have same name. But it is not available in c i think. It is available in c++..
25th Dec 2020, 4:06 PM
Jayakrishna 🇼🇳