Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Menuestruktur

Empfohlene Antworten

Veröffentlicht

#include <stdio.h>

float celsius_fahrenheit();

float fahrenheit_celsius();

main(int argc, char *argv[])

{

char tastatur ;

printf("Geben sie c ein, fuer die berechnung des Celsiustemperaturwertes nach

Fahrenheit ein \n \n");

printf("Geben sie f ein, fuer die berechnung des Celsiustemperaturwertes nach

Fahrenheit ein \n");

tastatur = getch();

if(tastatur == 'c'){

float fahrenheit_celsius();

}else{

float celsius_fahrenheit();

}

getch();

}

float celsius_fahrenheit() {

printf("celsius");

getch();

}

float fahrenheit_celsius() {

printf("fahrenheit");

getch();

}

Kann mir mal bitte einer sagen warum nicht die Funktion float fahrenheit_celsius() beim drücken von c aufgerufen wird.

mfg

Simon

Kann mir mal bitte einer sagen warum nicht die Funktion float fahrenheit_celsius() beim drücken von c aufgerufen wird.

Weil das:

float fahrenheit_celsius();

kein Funktionsaufruf, sondern eine Deklaration ist. Beim Aufruf gibt man nicht den Rückgabetyp an, sondern verarbeitet den Rückgabewert (außer bei void-Funktionen), z.B. indem man ihn einer Variablen zuweist.

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.