OC和C混编

BOOL differentInt()
{
    if(m != n)
	    return YES;
	else
	    return NO;
}

NSString* boolString(BOOL yn)
{
    if(yn == YES)
	    return @"YES";
	else
	    return @"NO";
}

int main(int argc, char* argv[])
{
    NSLog(boolString(differentInt(5, 3)));
	return 0;
}

你可能感兴趣的:(OC和C混编)