Promotions refer to the entire set of activities, which communicate the product, brand or service to the user. The idea is to make people aware, attract and induce to buy the product, in preference over others.
Questions tagged [promotions]
137 questions
74
votes
7 answers
What is the purpose of the h and hh modifiers for printf?
Aside from %hn and %hhn (where the h or hh specifies the size of the pointed-to object), what is the point of the h and hh modifiers for printf format specifiers?
Due to default promotions which are required by the standard to be applied for…

R.. GitHub STOP HELPING ICE
- 208,859
- 35
- 376
- 711
70
votes
9 answers
Why does C++ promote an int to a float when a float cannot represent all int values?
Say I have the following:
int i = 23;
float f = 3.14;
if (i == f) // do something
i will be promoted to a float and the two float numbers will be compared, but can a float represent all int values? Why not promote both the int and the float to a…
user4344762
63
votes
2 answers
How to promote a specific build number from another job in Jenkins?
I installed the Promoted Build Plugin from Jenkins and now I'm facing some troubles to promote a build from an existing job. Here is the scenario:
There is an existing Nightly Build job that runs every night running all the tests and metrics…

Matheus
- 763
- 1
- 7
- 11
40
votes
3 answers
Default argument promotions in C function calls
Setup
I have a few questions about the default argument promotions when calling a function in C. Here's section 6.5.2.2 "Function calls" Paragraphs 6, 7, and 8 from the C99 standard (pdf) (emphasis added and broken into lists for ease of…

Andrew Keeton
- 22,195
- 6
- 45
- 72
16
votes
4 answers
Java Why is converting a long (64) to float (32) considered widening?
As it states from oracle
Reference from Oracle Docs
Widening Primitive Conversion
19 specific conversions on primitive types are called the widening primitive conversions:
byte to short, int, long, float, or double
short to int, long, float, or…

stackoverflow
- 18,348
- 50
- 129
- 196
11
votes
2 answers
What to put in DisplayUrl in AdMob promotion?
I know it sounds and actually is stupid. I am trying to promote my app with AdMob. In the promotion form there, I put
URL: market://details?id=com.xxxx.xxxxxx.xxxxx
DisplayUrl: ????
Whatever I enter for DisplayUrl, system is giving me invalid…

Tae-Sung Shin
- 20,215
- 33
- 138
- 240
11
votes
4 answers
Printing a float in C while avoiding variadic parameter promotion to double
How can I print (that is, to stdout) a float in C without having it be promoted to a double when passed to printf?
The issue here is that variadic functions in C promote all float parameter to double, which incurs two unnecessary conversions. For…

Xo Wang
- 377
- 1
- 4
- 9
11
votes
3 answers
Workaround to lack of promotional codes for in-app purchases
Apple doesn't offer promotional codes for in-app purchases. What's the best way to let users try the features or content unlocked by in-app purchases for free, while complying with Apple's Developer Guidelines?
The idea is to allow a special set of…

hpique
- 119,096
- 131
- 338
- 476
10
votes
2 answers
No really, when does floating point promotion actually happen?
From this other QUESTION they talk about how Bjarne Stroustrup said that just as integral data-types narrower than an int(e.g. short) are promoted to an int, floats are promoted to a double. However, unlike widening of integrals narrower than an…

Wandering Fool
- 2,170
- 3
- 18
- 48
8
votes
4 answers
Is there a printf specifier that requires float not double?
I'm getting MISRA type errors when I use "%f" specifier for snprintf with a parameter of type float.
According to my research, MISRA is correct because "%f" expectes a type of double.
Is there a floating point specifier or modifier that will use…

Thomas Matthews
- 56,849
- 17
- 98
- 154
7
votes
3 answers
How to promote a new product/service?
This is often a bit of a problem for lone developers working on a product or a service. How can they get the word out about their product?
I recently finished a project of mine and I'm struggling a bit to spread word of it.
What do you think is the…
user47322
6
votes
1 answer
Default argument and parameter promotions in C
I was studying about default argument promotions and got stuck at one point. In C 2011 (ISO/IEC 9899:2011), the relevant part seem to be:
§6.5.2.2 Function calls
¶6 If the expression that denotes the called
function has a type that does not…

LocalHost
- 910
- 3
- 8
- 24
6
votes
1 answer
Proper way of Apple in app purchase with free trial in flutter
I am coding in Flutter, and I want to implement an auto-renewable subscription with a 3day free trial period.
Unfortunately, I did not find any exact documentation or advice, how can I test it.
What I tried:
1) I created an auto-renewable product in…

janosdupai
- 519
- 1
- 5
- 16
6
votes
1 answer
Java GC: top object classes promoted (by size)?
Please let me know what is the best way to determine composition of young generation memory promoted to old generation, after each young GC event?
Ideally I would like to know class names which are responsible say, for 80% of heap in each "young…

Andrei Pozolotin
- 897
- 3
- 14
- 21
5
votes
1 answer
How to find out if a promo code for an in-app purchase has been redeemed?
I had generated 100 codes for an in-app purchase from the Promotions section on the Google Play Console and have started sharing with some new users.
However, the Play Console just mentions that 10 out of 100 promo codes have been redeemed but does…

vepzfe
- 4,217
- 5
- 26
- 46