Skip to main content
Filter by
Sorted by
Tagged with
5 votes
1 answer
102 views

Both GCC and Clang reject extern "C" static void foo() {} but accept extern "C" { static void foo() {} } Aren't these supposed to be equivalent?
yuri kilochek's user avatar
0 votes
2 answers
51 views

somy question is, **Is there two variable named x in the main ,one goes to g() with value 1 go there prints 2 and another one keeps at 1 again prints 2 in main. ** #include <stdio.h> void f(){ ...
Rajat Chakraborty's user avatar
0 votes
1 answer
81 views

Suppose there is a file with a declaration of a function which differs from the actual definition in another file i.e. FileA.c short foo(); int main(){ foo(); } FileB.c int foo(){ //Some code }...
patvax's user avatar
  • 659
1 vote
1 answer
157 views

Objects uploaded to a bucket has different storage class than the default storage class. I have a Synology NAS. I am using the Hyper Backup application to create an offsite backup of my NAS data. One ...
pecanp1e's user avatar
0 votes
0 answers
753 views

I am trying to install elastic cluster on k8s using helm. k8s cluster is running on AWS ec2 nodes. 1 master and 3 workers. Getting pod error: Warning FailedScheduling 59m default-scheduler 0/4 ...
Raj's user avatar
  • 41
0 votes
0 answers
76 views

I want to run two concurrent threads both of which call a function (e.g. void channel()) and that function needs access to a few objects namely a std::random_device, a PRNG engine, and two std::...
digito_evo's user avatar
  • 3,725
1 vote
1 answer
435 views

We're running a cluster with 2 VerneMq brokers. Everything works fine if we start one broker at one time, but as soon as we need to start both the brokers, all the retained messages are lost. To fix ...
Logan's user avatar
  • 2,545
2 votes
2 answers
150 views

I am trying to understand how the "static" modifier works in C, I went looking for its meaning and everything I found seemed a bit vague. It is a modifier to allow the values of a variable ...
Astaroth's user avatar
1 vote
1 answer
131 views

I think this none sense doesnt that? because after creating instance from that variable. It will initialize that variable whole, will not behave differently to members an will initialize all of them, ...
mohammadsdtmnd's user avatar
1 vote
0 answers
434 views

I have created a kubernetes cluster using 2 droplets (digital ocean machines) 1 machine is set to be master and another is set to be worker Now, I am running a project which has 2 PVCs. (Their configs ...
Keval Bhogayata's user avatar
2 votes
2 answers
3k views

I read about the new storage class S3 Glacier Instant Retrieval and I want to use it when I upload files to S3 using the AWS CLI (command line interface). I read on https://awscli.amazonaws.com/v2/...
Uri's user avatar
  • 3,361
0 votes
2 answers
703 views

I have these dummy piece of software made of 3 files: test.h int gv; void set(int v); test.c #include "test.h" void set(int x) { gv = x; } main.c #include "test.h" #include &...
Giovanni Cerretani's user avatar
6 votes
1 answer
5k views

I wanted to know what's the difference of the reclaimPolicy in StorageClass vs. PersistentVolume. Currently we created multiple PersistentVolume with a StorageClass that has a reclaimPolicy of Delete, ...
Christian Schmitt's user avatar
1 vote
1 answer
813 views

I am trying to specify the storage class for an AWS S3 object (image file) on its upload from a web page post. All works fine without the storage class specification but when I add it to the policy ...
glez's user avatar
  • 1,214
3 votes
1 answer
3k views

I need to check the storage class of an object inside an S3 bucket. Is there a way to get the storage class of an S3 object using the AWS CLI v2?
Monika's user avatar
  • 55
0 votes
1 answer
4k views

I've inherited a terraform/helm based GKE with a set of deployments and services in production environment. All of them use the default storage class as PVC. I would like to switch to a more robust ...
Gabriele B's user avatar
  • 2,684
0 votes
2 answers
214 views

#include <iostream> class A{ public: void printit(register int b) { std::cout<<"inside A"; } }; class C:public A{ public: void printit(int b) { std::cout<<"inside C"...
electronic_coder's user avatar
1 vote
1 answer
48 views

I'm reading the book C-Primer Plus. Following is the text I would like better understanding - file - constant.h /* constant.h -- defines some global constants */ static const double PI = 3.14159; ...
arniem's user avatar
  • 155
0 votes
2 answers
127 views

The following doesn't appear to be valid c++ (-std=c++2a). I want to change the storage class of var based on the template parameter b: #include <type_traits> template <bool b> void f() {...
davide's user avatar
  • 2,202
0 votes
1 answer
87 views

Please check the following code, #include <stdio.h> #include <string.h> void* make_adder_function(int a) { char str[64] ={}; sprintf(str,"this function adds %d with input",a); ...
Ajith C Narayanan's user avatar
1 vote
4 answers
597 views

In C++, the keyword register was removed in its latest standard ISO/IEC 14882:2017 (C++17). But also in C, I see a lot, that more and more coders tend to not use or like to declare an object with the ...
RobertS supports Monica Cellio's user avatar
4 votes
1 answer
170 views

I have a question about register keyword in C. I found that register array name(e.g. array) can be assigned to pointer variable while &array[0] cannot be. Can you explain why array name can be ...
MMX's user avatar
  • 73
1 vote
1 answer
1k views

I have set up AKS cluster with 14 Linux nodes. I am deploying code using helm charts. The pods with manual storageClass get created successfully but the ones that use default storageClass fail to ...
Atif's user avatar
  • 11
2 votes
1 answer
435 views

I understand that the documentation states that multi-regional and regional are not inter-convertible, but fail to see the technical hindrance to it
Y.M's user avatar
  • 21
2 votes
2 answers
162 views

I am using a struct like: struct{ int a; char b[100]; }name; I want to use static storage class specifier on name. How can I do that?
Mihir Luthra's user avatar
  • 6,889