answersLogoWhite

0

It doesn't have length, but you can use sizeof to find out its size.

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

How do you find the factorial of any number?

Given an integer, n, recursively multiply by n-1 until n is 1.unsigned long long fact (unsigned long long n) {return (n>1)?n*fact (n-1):1;}Note that an unsigned long long integer of 64 bits length can only accommodate factorials up to n=21. To cater for anyinteger you will need to use a variable-length integer type. The C language does not provide one as standard, but you will find third-party libraries that can cater for huge integers, typically storing the integer as a variable-length string.


How many bytes take an integer variable in C under windows?

A plain integer variable in C under windows is 2 bytes in 16 bit windows, and 4 bytes in 32 bit windows.


How many categories of variables are there in C?

there r 3 types of variable in 'C' Integer Float Character


What is the intialization in c?

Initialization is nothing but assigning some value to a parameter. ex :- int a; // Defination of an integer variable a = 3; // Initialization of the variable a


What is the data type int?

Data-type (short for integer).


How many bytes is an integer variable?

It depends on the context. Each database and computer language define an "integer". In the C language an integer is defined by the hardware. It can vary from 2 to 8 bytes or more.


Meaning of signed integer in c language?

signed integer means that it has a sigh (+ or -). Using another words you say that signed variable can be positive as well as negative. unsigned variables can be only positive.


What is variable definition in c language?

variable definition means to declare the variable with its value. for example:- int i=10; this statement is a combination of declaration of integer i and assign its value to it,so it is a definition statement Note: assigning a value is not essential.


How you can interchange two integer values using swap variable in c language?

t = a; a = b; b = t; // t is a third integer variable (swap variable) But here's a way without a swap variable, given as as a macro in C: #define SWAP(a,b) { if (a!=b) { a^=b; b^=a; a^=b; }} // Swap macro by XOR Once you define it, you can say swap(x,y) to swap x and y. The numbers kind of flow through each other and end up swapped.


How do you write 2n in C?

In C, you can write 2n by using the multiplication operator. If n is a variable of an integer type, you would write it as 2 * n. For example, if n is defined as an integer, you can define it as follows: int n = 5; // or any integer value int result = 2 * n; // result will be 10 if n is 5


What is the use of percent in printf statement in c?

It is a flag character that precedes the variable type place holder. %d %i Decimal signed integer. %o Octal integer. %x %X Hex integer. %u Unsigned integer. %c Character. %s String. See below. %f double %e %E double. %g %G double. %p pointer. %% %. No argument expected.


What is the difference between instantiation and initialization in C plus plus?

Instantiation is creating the instance of the variable/object . While Initialization is to provide the variable with some value. int i; // i is an instance of an integer i=10; //initialised with the value 10