Computer Science, asked by akshayshenoy475, 1 year ago

Determine Output:

void main() { int a[] = {10,20,30,40,50}, j, *p; for(j=0; j<5; j++){ printf("%d" ,*a); a++; } p = a; for(j=0; j<5; j++){ printf("%d" ,*p); p++; } }
A.10 20 30 40 50 10 20 30 40 50
B.10 20 30 40 50 Garbage Value
C.Error
D.None of These

Answers

Answered by Neeraj723
1
Hii dear here is your answer


option b is the correct answer

Hope it's help u
Answered by MoonGurl01
7
Hey mate,☺☺☺

Here is your answer...✨✨✨

➡➡➡➡➡➡➡➡➡➡➡➡➡

QUESTION:

Determine Output:

void main() { int a[] = {10,20,30,40,50}, j, *p; for(j=0; j<5; j++){ printf("%d" ,*a); a++; } p = a; for(j=0; j<5; j++){ printf("%d" ,*p); p++; } }
A.10 20 30 40 50 10 20 30 40 50
B.10 20 30 40 50 Garbage Value
C.Error
D.None of These

ANSWER:

Option 【B】10 20 30 40 50 Garbage Value

✔✔✔✔✔✔✔✔✔✔✔✔✔

Hope this will help you...✨✨✨

Keep Asking..✌✌✌

❤❤❤ If helps you, Mark my answer as Brainliest....❤❤❤
Similar questions