#include <iostream>
#include <string>
using namespace std;
namespace My_old_school_and_college_friends_number
{
long int f1 = 9999999999;
long int f2 = 1111111111;
}
namespace contacts = My_old_school_and_college_friends_number;
int main(){
cout<<contacts::f1;
}
a) 9999999999
b) 1111111111
c) error
d) segmentation fault
What will be the output of following C++ code?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
What will be the output of following C++ code?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!