MCQOPTIONS
Saved Bookmarks
| 1. |
What would be the output of following code? #include<stdio.h> int main(int argc,char **argv) { int iVar=0, iCnt, aiArr[] = {56,23,4,89,-200,34}; for(iCnt = 1; iCnt <6; iCnt++) { if(aiArr[iCnt] < aiArr[iVar]) iVar = iCnt; } printf("%d",iVar); return 0; } |
| A. | 4 |
| B. | 89 |
| C. | 3 |
| D. | -200 |
| Answer» B. 89 | |