עבור לתוכן
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.

שאלה בפוניינטרים בשפת סי

Featured Replies

פורסם

כשאני מריץ את התוכנית הפלט הינו : 113

למה זה?



char str1[20] = "question 4";
char str2[] = "second";
int i;
char *prt;
printf("%d\n",*str1);






פורסם

בוא נסתכל על השורה הזו:


printf("%d\n",*str1);

d% אומר להדפיס את הפרמטר שהועבר לפונקציה כמספר שלם.

str1* זה הערך היושב בתא שאליו מצביע str1.

כידוע, כל מערך הוא בעצם מצביע לתא הראשון במערך, כלומר str1 הוא בעצם מצביע לתא הראשון שבו, שמכיל את התו 'q'.

לכן, הפקודה אומרת להדפיס את הערך המספרי של התא הראשון במערך str1.

פורסם
  • מחבר

האא! המון תודה..!

פורסם
  • מחבר

שניצל אם נניח לא היה סימון כוכבית אז מה הוא היה מדפיס?


printf("%d\n",str1);

ארכיון

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

דיונים חדשים

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.