Acronyms used in operating system

A/UX - Apple UniX AIX - Advanced Interactive eXecutive BSD - Berkeley Software Distribution CIMOM - Common Information Model Object Manager DAT - Direct Address Translation DSI - Dynamic System Initiative FAT - File Allocation Table GPO - Group Policy Object HKCC - HKEY_CURRENT_CONFIG HKCR - HKEY_CLASSES_ROOT HKCU - HKEY_CURRENT_USER HKLM - HKEY_LOCAL_MACHINE HPUX - Hewlett Packard UniX JCL - Job Control Language Linux - Linus and Unix LM - LAN Manager [Read More]

Some macros

#define SQR(x) ((x)*(x))

#define MAX(a,b) ( (a) > (b) ? (a) : (b)  )

#define ISLP(y)  (  (y % 400 == 0)  || (y %100 != 0 && y%4 == 0)  )

 #define ISLOWER(a)  (a>=97 && a<=127)

#define TOLOWER(a)  (a - 32)

Using define without assigning value

#include
#define NO
#define YES

int main()
{
    int i = 5,j;
    if (i>5)   j=YES;
    else j=NO;

    printf("%d”,j);
}

Output: Expression syntax in function main
Explanation: Because when assigning j with YES or NO we don’t know what is the value of YES or NO.