logo

Crowdly

Browser

Add to Chrome

Grundgebiete der Informatik 1 - Kleingruppen (TU) [24ws-61.30511]

Looking for Grundgebiete der Informatik 1 - Kleingruppen (TU) [24ws-61.30511] test answers and solutions? Browse our comprehensive collection of verified answers for Grundgebiete der Informatik 1 - Kleingruppen (TU) [24ws-61.30511] at moodle.rwth-aachen.de.

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

View this question

Welche Ausgabe wird von der Funktion printf generiert?

#include <stdio.h>

#define DEF(x) 8*x

int main()

{

    printf("%d", DEF(((-12)+(-3))));

    return 0;

}

View this question
View this question

Verhalten sich die beiden folgenden Programme gleich?

Programm 1

1 #include <stdio.h>

2 #define MAX 30/* bis zu dieser Zahl wird getestet */

3 #define TEILER 3 /* Teilbarkeit durch TEILER wird geprueft */

4

5 int main() {

6    int aktZahl = 1;/*aktuelle Zahl, die auf Teilbarkeit geprueft wird*/

7

8    while(aktZahl <= MAX) {

9       if(aktZahl%TEILER== 0)

10      printf("%d ist durch %d teilbar.\n", aktZahl, TEILER);

11      aktZahl = aktZahl + 1;

12   }

13   return 0;

14 }

Programm 2

1 #include <stdio.h>

2 #define MAX 30 /* bis zu dieser Zahl wird getestet */

3 #define TEILER 3 /* Teilbarkeit durch TEILER wird geprueft */

4

5 int main() {

6    int aktZahl;/*aktuelle Zahl, die auf Teilbarkeit geprueft wird*/

7

8    for(aktZahl = 1; aktZahl <= MAX; aktZahl++) {

9       if(aktZahl%TEILER== 0) {

10         printf("%d ist durch %d teilbar.\n", aktZahl, TEILER);

11      }

12   }

13   return 0;

14 }

100%
0%
View this question

Want instant access to all verified answers on moodle.rwth-aachen.de?

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

Browser

Add to Chrome