answersLogoWhite

0

Use of int in C plus plus?

User Avatar

Anonymous

15y ago
Updated: 8/17/2019

Is quite common. Example:

int main (int argc, char **argv)

{

printf ("Number of parameters is %d\n", argc-1);

return 0;

}

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

When do we use int in c plus plus programming?

'int' is one of the built-in data-types, it is meant to hold integer values.


Example program arrays in turbo c plus plus?

Yes, you can use for-loop in a C program compiled by Turbo C.


What does c plus plus use call by value or call by reference?

When we call a function in C++ by passing the values as arguments, it is called call by value. e.g #include<iostream.h> #include<conio.h> int add(int,int); int main() { int a,b,c; cout<<"Enter numbers."; cin>>a>>b; c=add(a,b); cout<<"Sum : "<<c; return 0; } int add(int a,int b) { int c; c=a+b; return c; }


C plus plus program using function min that take three parameters of type int and returns the minimum of the three?

int min (int a, int b, int c) {if (a


Which Program that will run in C but not in C plus plus?

void main() { int *x = malloc(sizeof(int) * 10); }


Is it corrrect to declare a variable in c or c plus plus as two or three words for eg int seg no?

No., If you want to declare you jus use _ in between so the declaration will be like int seg_no;


What is an instance class in C plus plus?

You have a class(i.g. MyClass): class MyClass{ public: int MyData; }; And then you use the class like this: int main(){ MyClass MyObject; MyObject.MyData=7; }


Write a c plus plus program to find largest among three number using control statement and ternary operators?

int max (int a, int b) { return a<b?b:a; } int max3 (int a, int b, int c) { return max (max (a, b), c); }


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

struct point { int x; int y; };


C plus plus programming for addition of two numbers?

int main() { int x = 40 + 2; }


Can you use blank lines in your C plus plus Code?

Yes, for example: #include <stdio.h> int main ( int argc, char **argv) {puts ("Hello, world"); return 0; }


Write a c plus plus program to compute two integers?

int x= 1; int y= 2;