how to create a 3x3 two dimensional array that will give you the sums on the left and bottom columns
No Answer is Posted For this Question
Be the First to Post Answer
why array index always strats wuth zero?
main(){ int a= 0;int b = 20;char x =1;char y =10; if(a,b,x,y) printf("hello"); }
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).
main() { int i=5; printf("%d%d%d%d%d%d",i++,i--,++i,--i,i); }
Predict the Output: int main() { int *p=(int *)2000; scanf("%d",2000); printf("%d",*p); return 0; } if input is 20 ,what will be print
main(int argc, char *argv[]) { (main && argc) ? main(argc-1, NULL) : return 0; } a. Runtime error. b. Compile error. Illegal syntax c. Gets into Infinite loop d. None of the above
int i,j; for(i=0;i<=10;i++) { j+=5; assert(i<5); }
int main() { int x=10; printf("x=%d, count of earlier print=%d", x,printf("x=%d, y=%d",x,--x)); getch(); } ================================================== returns error>> ld returned 1 exit status =================================================== Does it have something to do with printf() inside another printf().
main() { extern int i; i=20; printf("%d",i); }
main() { char a[4]="HELLO"; printf("%s",a); }
main() { int i=10; i=!i>14; Printf ("i=%d",i); }
Cau u say the output....?