void main()
{
int i=5;
printf("%d",i++ + ++i);
}
Answers were Sorted based on User's Feedback
Answer / susie
Answer :
Output Cannot be predicted exactly.
Explanation:
Side effects are involved in the evaluation of i
| Is This Answer Correct ? | 0 Yes | 5 No |
can u give me the c codings for converting a string into the hexa decimal form......
main() { int x=5; clrscr(); for(;x==0;x--) { printf("x=%d\n”", x--); } } a. 4, 3, 2, 1, 0 b. 1, 2, 3, 4, 5 c. 0, 1, 2, 3, 4 d. none of the above
Who could write how to find a prime number in dynamic array?
#ifdef something int some=0; #endif main() { int thing = 0; printf("%d %d\n", some ,thing); }
Is it possible to print a name without using commas, double quotes,semi-colons?
#if something == 0 int some=0; #endif main() { int thing = 0; printf("%d %d\n", some ,thing); }
#define f(g,g2) g##g2 main() { int var12=100; printf("%d",f(var,12)); }
Question: We would like to design and implement a programming solution to the reader-writer problem using semaphores in C language under UNIX. We assume that we have three readers and two writers processes that would run concurrently. A writer is to update (write) into one memory location (let’s say a variable of type integer named temp initialized to 0). In the other hand, a reader is to read the content of temp and display its content on the screen in a formatted output. One writer can access the shared data exclusively without the presence of other writer or any reader, whereas, a reader may access the shared memory for reading with the presence of other readers (but not writers).
typedef struct error{int warning, error, exception;}error; main() { error g1; g1.error =1; printf("%d",g1.error); }
#define max 5 #define int arr1[max] main() { typedef char arr2[max]; arr1 list={0,1,2,3,4}; arr2 name="name"; printf("%d %s",list[0],name); }
plz send me all data structure related programs
How to access command-line arguments?