answersLogoWhite

0

What is an example for int?

Updated: 12/22/2022
User Avatar

Wiki User

14y ago

Best Answer

static int x=3;

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is an example for int?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Define a variable and give an example?

int x; "Example"


How do you return array of pointers?

Example: int **myfun (void) { int **myptr= calloc (sizeof (int *), 100); return myptr; }


Using conditional operator find a biggest number among two numbers?

Here is an example in Java: int a = 5; int b = 7; System.out.println(a > b ? a : b);Here is an example in Java: int a = 5; int b = 7; System.out.println(a > b ? a : b);Here is an example in Java: int a = 5; int b = 7; System.out.println(a > b ? a : b);Here is an example in Java: int a = 5; int b = 7; System.out.println(a > b ? a : b);


What is an example of a parameter?

'argc' and 'argv' in this line: int main (int argc, char **argv)


What is segmentation faults in c language?

Example: int *p= (int *)-1; *p= 0;


How can void pointer is assigned to an int type pointer?

Example: int *pi; void *pv; pv= (void *)pi; pi= (int *)pv;


Do some simple example about prototype in c language?

int foo (void); void bar (int);


Can you give an example of a structure in C plus plus?

struct point { int x; int y; };


Can you give an example on how you pass array elements to a function?

int main void (int argc, char *argv[]){int i;for (i=0; i


How can you make an header file in c language?

Using a text editor. Example: /* myheader.h */ #ifndef MYHEADER_H #define MYHEADER_H extern int myvariable; extern int myfunction (int x, int y, int z); #endif


What is a pointer to a function?

An example might help you: extern int function1 (int parameter); extern int function2 (int parameter); int (*function_pointer_variable)(int parameter); function_pointer_variable = function1; (*function_pointer_variable)(12); /* call function1 */ function_pointer_variable = function2; (*function_pointer_variable)(33); /* call function2 */


What is a factorial loop?

An example in Java, to compute 10!: int factorial = 1; for(int i = 1; i < 11; i++) { factorial *= i; }