data-type
int a; -- variable definition"int a" -- string literal
C language: int (but C is NOT a .net language) C# language: object or System.Object
Example: int *p= (int *)-1; *p= 0;
int a = 1 + 2; ---------- int a = 1; int b = 2; a += b;
int foo (void); void bar (int);
int pallindrom(int p){ /*write all logic*/ }
printf ("sizeof (int) is %d bytes", (int)sizeof (int)); Most likely it will be 2 or 4.
They are entirely different things; int is a type, typedef is a way to define types.
Well, uh, const unsigned int and const signed int..
int main() { int num1; int num2; int result = num1 + num2; return 0; }
Use the atoi() or atol() function.
Type 'int'