Social Buttons

Σύγκριση Δομών

Δεν μπορούμε να συγκρίνουμε δομές αλλά μπορούμε να συγκρίνουμε τα πεδία των δομών ένα προς ένα .

Παράδειγμα :


if (proti.number==deuteri.number)
{
     printf("To pedio ton domon number einai iso \n");
}

Είναι λάθος να πούμε :


if (proti==deuteri)
{
   printf("Oi domes einai ises \n");
}



Copyright © 2015 Sofronas Konstantinos - Sotirios. All Rights Reserved. Designed By Sofronas