logo

Crowdly

Browser

Add to Chrome

Adatszerkezetek és algoritmusok 2024/2025

Looking for Adatszerkezetek és algoritmusok 2024/2025 test answers and solutions? Browse our comprehensive collection of verified answers for Adatszerkezetek és algoritmusok 2024/2025 at moodle.ms.sapientia.ro.

Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!

Adottak az alábbi deklarációk és programrész:
struct DATA{

int data1;

float data2;

char data3[];

}DATE;

struct DATA x;

int main()

{DATA y;

y.data1=x.data1;
...
}
Válaszd ki a helyes kijelentéseket:

0%
0%
View this question

Melyik módszerrel kerülhető el egy header fájl többszörös beillesztése?

0%
0%
0%
0%
View this question

Melyik állítás igaz a header fájlokra (.h) C-ben?

0%
0%
0%
0%
View this question

Az n elemű tömb helyfoglalása O(n), a felszabadítása O(n) időbonyolultságú.

Igaz vagy hamis?

0%
0%
View this question

Mit ír ki az alábbi programrész?

enum Torpek{Hapci, Kuka, Szundi, Morgo, Vidam, Szende, Bubu};

enum Torpek x=

Morgo;

printf("%i",x);}

 

0%
0%
0%
View this question

Az alábbi függvény egy egydimenziós tömb helyfoglalására kellene szolgáljon, de három sora hibát tartalmaz. Melyek ezek?

1. void allocateMemoryForArray(int

n,**dpArray) {

   2.  *dpArray = (int

*) malloc(n * sizeof(int);

  3.   if (!(*dpArray))

{

     4.    printf(“ERROR”);

      5.   exit(-1);

    }

   6.  return (*dpArray);

}

0%
0%
0%
View this question

A #define

egy preprocessor direktíva, amely egyszerű szöveghelyettesítést

végez a fordítás előtt, nincs adattípusa. Hátránya: nincs típusellenőrzés és

értékadás.

0%
0%
View this question
Mit ír ki?

#include <stdio.h>

 enum Days{

Monday,

Tuesday,

Wednesday,

Thursday,

Friday,

Saturday,

Sunday };

 int main() {

 enum Days today =

Monday;

 scanf("%s",&today);

printf("%i",today);

 return 0;

 }

0%
0%
0%
View this question

Want instant access to all verified answers on moodle.ms.sapientia.ro?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome