#include <stdio.h>
int a = 1, d = 1;
void habijabi(){
int c = 0;
static int b = 0;
if(a == ++b) {
printf("value of a is %d and value of b is %d \n",a++, ++b);
} else {
printf("value of a is %d and value of b is %d \n",++a, b++);
}
if(d == ++c) {
printf("value of d is %d and value of c is %d \n",d++, ++c);
} else {
printf("value of d is %d and value of c is %d \n",++d, c++);
}
}
int main(){
habijabi();
habijabi();
return 0;
}
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.