answersLogoWhite

0

What is static char in C?

Updated: 12/13/2022
User Avatar

Wiki User

13y ago

Best Answer

static storage class in C tells that:

The variable will have the default value as zero.

The variable scope will be the file in which it is defined.

RaVi

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is static char in C?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How can you display Hindi word in output of java program?

Class hindi { public static void main() { char c; for(c=2309;c<2362;c++) { System.out.println(" "+c); } } }


How do you apply if in char type in c plus plus?

char x = "C"; if(char == 'C') { } else { }


Are the three declaration char a char a and char c same?

Yes.


How do you code a character literal?

char c = 'a'; 'a' is a literal character, which assigns the value 0x61 (ASCII code 97 decimal) to the char variable c. The following lines are therefore equivalent: char a = 0x61; char b = 97; char c = 'a';


What does a char store?

In JavaA char in Java is a 16-bit integer, which maps to a subset of Unicode.In C A char in C is an 8-bit integer, which maps to standard ASCII.Note that in both Java and in C you can use a char value like a normal integer type: char c = 48;


Can you provide an Example for creating an array statically in c plus plus?

// Create a bunch of static arrays char name[80]; char names[80][80]; int nums[5]; float useless[1][1][1][1][1];


What is palindrome in c?

char* = "racecar"


How do you convert char to string?

Character.toString('c')


What is explicit typecasting in C plus plus programming?

int i = 42; char c = ( char ) i; // explicit cast double d = i; // implicit cast


How do you check address of char variable?

Use the address-of operator: char c=32; // space character std::cout<<&c<<std::endl;


What prototype for menu function takes no arguments but returns a char value?

char SomeFunction();This has nothing to do with menu functions. It is a straight C/C++ answer. Menu functions depend on the platform API, not on C/C++.


How do you return a word in a string so that every letter is a symbol eg egg must be 3 symbols?

Not really sure what you mean by symbol. I will assume that you are talking about a character Here is a method that will seperate each char of a String in an array of char public char[] seperateChar(String s) { char [] c = new char[s.length]; for(int i = 0; i < s.length(); i++) { c[i] = s.charAt(i); } return c }