0% found this document useful (0 votes)
11 views10 pages

Loop and Array

Download as xls, pdf, or txt
Download as xls, pdf, or txt
Download as xls, pdf, or txt
You are on page 1/ 10

Sheet1

Question type

Page 1
Sheet1

Page 2
#include<stdio.h> Sheet1
void
#include<stdio.h>fun(int[][3]);
int main(void)
{#include<stdio.h>
Question
int intmain()
arr[3][3]
arr[5] = {=11,{ {1,
2, 3,2, 15,
3}, 7{4,
}; 5, 6}, {7, 8, 9} };
{ fun(arr);
int *ptr = (&arr + 2);
printf("%d\n",
printf("%d
#include<stdio.h>
int arr[ ]={1.2, arr[2][1]);
%d\n",
2.4,*(arr + 1),5};
3.6, 4.8, *(ptr - 2));
int return
#include<stdio.h> 0;
main()
int j, *ptr = arr;
}{for(j
int main()
= 0;j<5;j++)
void
{int fun(int b[][3])
{ arr[5][5][5] = {0};
{int i
*b= 0;
= arr;
printf("%d ", *arr);
#include<stdio.h>
++b;
char
int
++ptr; *cs[4]
#include<stdio.h> = {'\0',
= arr + 1; '\0', '\0', '\0'};
int main()
b[1][1] = 15;
{for(i
int } main() = 0;i<4;i++)
printf("%d", c - b);
}#include<stdio.h>
{
return
} i = 0;
{char 0;
}int
int printf("%c",
main()
i;
for(;i<=127;i++) s[i]);;
}printf("%d\n",i);
{for(i = 0; i>9; i+=3)
#include<stdio.h>
return
{return 0;
int i = 1, j = 1;
0;
#include<stdio.h>
}int
}int
main()
for(--i && ");
printf("for j++ ; i<10; i+=2)
{{} main()
{static int i;
printf("loop
return 0;
for(5;2;2) ");
for(i++;++i;i++)
}}printf("Hello");
{return 0;
return 0;
}}printf("%d ", i);
if(i == 6)
break;
}
return 0;
}

Page 3
Sheet1

Page 4
Sheet1

RC Question ID correct option number Option 1

3 2 11

4 9

1 11111

3 0

3 \0\0\0\0

3 128

1 Nothing Print

3 Compile Error

1 Loop Never Ends

3 24

Page 5
Sheet1

Page 6
Sheet1

Option 2 Option 3

11 2 2 7

8 7

22222 12345

Run Time Error 25

\0\0\0 No Output

0-127 Infinite Loop

for for for for

Loop Never Ends loop loop loop loop loop

Compile Error Hello

Loop Never Ends 246

Page 7
Sheet1

Page 8
Sheet1

Option 4

11 3

15

NONE

Some Address

NONE

NONE

NONE

NONE

NONE

NO OUTPUT

Page 9
Sheet1

Page 10

You might also like