For example, you want to set 40% alpha transparence to #000000
(black color), you need to add 66
like this #66000000
.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#define bar() \ | |
int var = 10;\ | |
printf("var in bar: %d\n", var) | |
void foo() | |
{ | |
int var = 5; | |
printf("var in foo: %d\n", var); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
void bar() | |
{ | |
int var = 10; | |
printf("var in bar: %d\n", var); | |
} | |
void foo() | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Preprocessed code omitted */ | |
int main(int argc, char *argv[]) | |
{ | |
int a = 5; | |
int b = 10; | |
int sum = (a + b); | |
printf("%d\n", sum); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#define SUM(x, y) (x + y) | |
int main(int argc, char *argv[]) | |
{ | |
int a = 5; | |
int b = 10; | |
int sum = SUM(a, b); | |
printf("%d\n", sum); |
NewerOlder