Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in C only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Today's Posts
Member List
Calendar
Home
Forum
Topic
C
c programming
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
finest4u002
New Member
Join Date:
Sep 2006
Posts:
2
#1
c programming
Sep 27 '06, 08:00 PM
write a program to print sum diagonal elements of array..
2 d array (3,3)
finest4u002
New Member
Join Date:
Sep 2006
Posts:
2
#2
Sep 27 '06, 08:01 PM
c programming
write a program to print sum of diagonal elements of array..
2 d array (3,3)
1 2 3
4 5 6
7 8 9
print sum of 1 5 9
Comment
Post
Cancel
Banfa
Recognized Expert
Expert
Join Date:
Feb 2006
Posts:
9067
#3
Sep 27 '06, 08:28 PM
You clear understand what you need to do, I suggest you have a go at doing it.
Comment
Post
Cancel
D_C
Contributor
Join Date:
Jun 2006
Posts:
293
#4
Sep 27 '06, 10:06 PM
Here is a hint. Although the array is 2D, you can treat it as 1D since you are going along the diagonal, which relates rows to columns.
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment