C Primer Plus, Sixth Edition (Jason Arnold's Library) by Stephen Prata

C Primer Plus, Sixth Edition (Jason Arnold's Library) by Stephen Prata

Author:Stephen Prata
Language: eng
Format: epub
Publisher: Addison-Wesley Professional
Published: 2014-03-24T16:00:00+00:00


* * *

/* compback.c -- strcmp returns */

#include <stdio.h>

#include <string.h>

int main(void)

{

printf("strcmp(\"A\", \"A\") is ");

printf("%d\n", strcmp("A", "A"));

printf("strcmp(\"A\", \"B\") is ");

printf("%d\n", strcmp("A", "B"));

printf("strcmp(\"B\", \"A\") is ");

printf("%d\n", strcmp("B", "A"));

printf("strcmp(\"C\", \"A\") is ");

printf("%d\n", strcmp("C", "A"));

printf("strcmp(\"Z\", \"a\") is ");

printf("%d\n", strcmp("Z", "a"));

printf("strcmp(\"apples\", \"apple\") is ");

printf("%d\n", strcmp("apples", "apple"));



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.