Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 785171
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T20:49:58+00:00 2026-05-14T20:49:58+00:00

How can i addition one + one matric (array data structure) and after it

  • 0

How can i addition one + one matric (array data structure) and after it find the third smallest number in it in C language (not C++)? Thank you for the code.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T20:49:59+00:00Added an answer on May 14, 2026 at 8:49 pm

    Example code follows:

    void addMatrix(unsigned int size, double const * const a, double const * const  b, double * const res) {
       int i;
       for (i = 0; i < size * size; ++i)
           res[i] = a[i] + b[i];
    }
    
    double findThirdSmallest(unsigned int size, double const * const input) {
       //save the three smallest values inside res
       double res[3];
       int i;
       for (i = 0; i < 3; ++i) {
           res[i] = LDBL_MAX;
       }
       for (i = 0; i < size * size; ++i) {
           int j;
           for (j = 0; j < 3; ++j) {
               if (input[i] < res[j]) {
                   int k;
                   for (k = 2; k != j; --k) {
                       res[k] = res[k - 1];
                   }
                   res[j] = input[i];
                   break;
               }
           }
       }
       return res[2];
    }
    

    EDIT: Changing the type and the size of the matrix will be your work.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 509k
  • Answers 509k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer You could try something like this: $('div.myLinks ul') .append( '<li><a… May 16, 2026 at 4:39 pm
  • Editorial Team
    Editorial Team added an answer What you are looking for can be found in camlp4.… May 16, 2026 at 4:39 pm
  • Editorial Team
    Editorial Team added an answer If you're using using JSONP, then the response should be… May 16, 2026 at 4:39 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

Any ideas of how best i can implement article revision history for a Java
I am playing with an application that can crawl the contents of sharepoint server.
Reverse engineering an existing database to map with N-Hibernate using Fluent N-Hibernate. How can
I have this script that I'd like to in addition save as a xls
I have various reasons for needing to implement, in addition to the identity column
As of Java 1.5, you can pretty much interchange Integer with int in many
Background: I'm writing an installation for a SharePoint component. In addition to getting the
I'm working on an editor for novel authors . After seeing programs like DarkRoom
I have a process that feeds a piece of hardware (data transmission device) with
I'm processing data from an application that has a few quirks in how it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.