programlama

Soru:

int a[3][4]={{1, 2, 3, 3}, {4, 5, 6, 6}, {7, 8, 9, 9}};

short b[4][2]={{1, 1}, {1, 0}, {0, 0}, {0, 1}}, i;

void main() {

for (i=0; 2*b[i][1]+b[i][0]; i++)

printf(“%d %d “, a[b[i][0]][i], a[i+1][i]);

}

Yukarıda verilen programın çıktısı ne olur?

(Not:Bilgisayar kullanmadan çözmeye çalışın)

Çözüm:

Çıktı Şöyle olur:
4 4 5 8

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.