python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
String concatenation of compile time constants
I'm trying to understand the String concatenation process. The below initialized variables (a, b, str) are all compile time constants.
When concatenating the compile time constants and comparing it wi...
Siva
Votes: 0
Answers: 0
Is a string literal converted to bool valid as part of a constant initializer expression?
enum {
compile_time_assertion = 1 / ("description" && 1);
};
Does the above snippet conform to C11? Having a string literal as part of the expression may violate one of the many c...
Roland Illig
Votes: 0
Answers: 1
Is there a way of getting the executable file's name in C without using argv[0]
This question is just out of curiosity. I thought there might be a predefined macro or something but couldn't find anything. If impossible, is it appropriate to use a constant global variable initiate...
Omer Erbilgin
Votes: 0
Answers: 0
accessing std::tuple element by constexpr in type
I would like to access to a tuple element at compile time by a value constexpr in the type
#include <iostream>
#include <tuple>
#include <utility>
struct A {
static constexpr in...
Deub
Votes: 0
Answers: 3