#define _ALLOCA_S_THRESHOLD 1024
This is available in the file malloc.h
2.__ATOMIC_RELEASE: It expands to 3.
#define __ATOMIC_RELEASE 3
3. LC_ALL: It expands to 0.
#define LC_ALL 0
4.__GCC_ATOMIC_CHAR16_T_LOCK_FREE: It expands to 2.
#define __GCC_ATOMIC_CHAR16_T_LOCK_FREE 2
5. __GCC_ATOMIC_INT_LOCK_FREE: It expands to 2.
#define __GCC_ATOMIC_INT_LOCK_FREE 2
Output:
1024 3 0 2 2
Approach:
C++
#include <bits/stdc++.h>using namespace std;int main(){cout << _ALLOCA_S_THRESHOLD << "\n";cout << __ATOMIC_RELEASE << "\n";cout << LC_ALL << "\n";cout << __GCC_ATOMIC_CHAR16_T_LOCK_FREE << "\n";cout << __GCC_ATOMIC_INT_LOCK_FREE << "\n";return 0;}
No comments:
Post a Comment