עבור לתוכן
View in the app

A better way to browse. Learn more.

HWzone

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.

קדימות אופרטורים לוגיים ב-c

Featured Replies

פורסם

למה הביטוי ללא הסוגריים נחשב כאמת?.

והביטוי ללא סוגריים נחשב כשקר?

ולמה יש לי שגיאת קומפילציה שאני מריץ את הקוד ב-vs?

#include <stdio.h>

/* Initialize variables. Note that c is not less than d, */
/* which is one of the conditions to test for. */
/* Therefore, the entire expression should evaluate as false.*/
int a = 5, b = 6, c = 5, d = 1;
int x;


int main()
{
/* Evaluate the expression without parentheses */


x = a < b || a < c && c < d;
printf("\nWithout parentheses the expression evaluates as %d", x);
/* Evaluate the expression with parentheses */


x = (a < b || a < c) && c < d;
printf("\nWith parentheses the expression evaluates as %d\n", x);
return 0;
}
Without parentheses the expression evaluates as 1
With parentheses the expression evaluates as 0


נערך על-ידי eliom

פורסם

למה זה ככה:

5*5+5=30

וזה ככה:

(5+5)*5=50

תציב במשתנים ותבדוק.

פורסם
  • מחבר
למה זה ככה:

5*5+5=30

וזה ככה:

(5+5)*5=50

תציב במשתנים ותבדוק.

איפה יש אופרטור כפול וחיבור בקוד שהבאתי?

פורסם

אתה זוכר שלמדת בכיתה ב סדר פעולות? אז זהו שיש סדר פעולות לכל הפעולות (אופרטורים ) ולא רק פעולות חשבון .

ארכיון

דיון זה הועבר לארכיון ולא ניתן להוסיף בו תגובות חדשות.

דיונים חדשים

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.