Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

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.

counterparts of ord and chr in C

Featured Replies

Hi,I wonder what the corresponding functions are for ord and chr in CBrgdsEugen

In C/C++, a character is a byte (or a word if you are setup to use Unicode). There is no distinction. Anyway, the code below should illustrate:char c = 'A'; // should be ascii 65int i = (int)c; // i = 65 = ord('A')char zero = '0';char one = (char)((int)zero + 1); // chr function = '1'There are also some Win32 API or some C runtime library functions for each, and they support unicode (double byte, or word sized, characters).That's why they use ADA to program the F16 flight control systems...

ADA! You said the ADA word! I am melting, ADA, ADA, ADA!When working for the U.S. Navy, ADA was being pushed down our throats as the next language to be used for all Government projects. Most colleges didn't support teaching ADA.Since being retired for almost four years, I don't know were ADA stands but it seemed to be declining even before I retired.Now excuse me, I have to go brush my teeth to get the ADA strings out between my teeth. I am going to gargle also to kill the ADA bacteria. Now were did I put that Listerine, UGH!!!W. Sieffert

Bill Sieffert

ADA-boy? Cheech, no respect for the daughter of Lord Byron...I'm not sure I want to admit I worked on that compiler...

Create an account or sign in to comment

Account

Navigation

Search

Search

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.