TestingDocs.com
Software Testing website
  • Automation
    • Selenium
    • JBehave Framework
  • Tutorials
    • MySQL Tutorials
    • Testlink
    • Maven
    • Git
  • IDEs
    • IntelliJ IDEA
    • Eclipse
  • Flowcharts
    • Flowgorithm
    • Raptor
  • About

C Tutorials

C Case-Sensitive Programming Language

Overview

C is a case-sensitive programming language. The uppercase letters and lowercase letters in the C language are considered to be different.

C is Case-Sensitive

C is case-sensitive for the identifiers. This means that if we define a variable in lowercase, we cannot refer to it in uppercase. C language treats them as different variables.

C is also case-sensitive for the function names. This means that if we define a function in lowercase, we cannot refer to or invoke the function in uppercase. We can provide two different implementations for the lowercase and uppercase functions.

Example

In this example, we define two variables a and A, and store different values. C considers them as two different variables.

 

 

/**
**********************************
* Program Description:
* C Expressions Demo
* Filename: casesense.c
* C Tutorials - www.TestingDocs.com
*************************************
*/
#include
/* Function Prototypes */
void foo();
void FOO();

int main()
{
 // declare variables
 int a = 7;
 int A = 9;
 /* C is case-sensitive programming
 Language. It considers lowercase letters
 and uppercase letters to be different.
 */
 printf("Lower case a = %d \n",a);
 printf("UPPER case A = %d \n",A);
 foo(); // invoke foo()
 FOO(); // invoke FOO()
 return 0;
} // end main

// dummy function foo (lower case)
void foo(){
 printf("Lower case function foo()\n");
}

// dummy function FOO (UPPER case)
void FOO(){
 printf("UPPER case function FOO()\n");
}

 

C Case-Sensitive Programming Language

Notice that we have provided two different implementations to the functions foo() and FOO(). C language treats both functions to be different.

Related Posts

C Language Characteristics

C Tutorials /

C Language Characteristics

C Source Code .c File

C Tutorials /

C Program Files & Formats

GNU Compiler Collection GCC

C Tutorials /

C Compilers

C Pointers

C Tutorials /

C Pointers

C Tutorials /

C Two-Dimensional Arrays

‹ C Expressions› C Program to find the product of two integer numbers

Recent Posts

  • Update draw.io on Windows
  • Install RAPTOR Avalonia on CentOS
  • Download RAPTOR Avalonia Edition on Windows
  • npm doctor command
  • Build & Run CLion Project
  • Create New CLion C Project on Windows
  • Configure CLion Toolchains on Windows
  • Launch CLion IDE on Windows
  • Activate CLion IDE
  • CLion IDE for C/C++ Development

Back to Top

Links

  • Contact
  • Privacy Policy
  • Cookie Policy

www.TestingDocs.com