answersLogoWhite

0

Int a is literal in C language or not?

Updated: 8/18/2019
User Avatar

Wiki User

13y ago

Best Answer

int a; -- variable definition

"int a" -- string literal

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Int a is literal in C language or not?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is literal in c language?

a string constant


What is the topNet class that everything is derived from in c?

C language: int (but C is NOT a .net language) C# language: object or System.Object


What is int in 'c' language?

data-type


What are the kinds of literals in c language?

Literals are either numeric types (integers and floating point types), or character types. int i = 42; // literal integer double pi = 3.14; // literal floating point char c = 'x'; // literal character char s[] = "Hello world"; // literal string Note that you cannot take the address of a literal since there's no way to refer to it.


What is segmentation faults in c language?

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


How do you add two numbers in c language?

int a = 1 + 2; ---------- int a = 1; int b = 2; a += b;


What is the meaning of 2L in C programming?

2L is the literal constant for a long (int) type with the value 2.


Do some simple example about prototype in c language?

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


How do you write palindrome program in c language?

int pallindrom(int p){ /*write all logic*/ }


In c language size of data type int?

printf ("sizeof (int) is %d bytes", (int)sizeof (int)); Most likely it will be 2 or 4.


What is the BNF for integer literal?

* <int>->


How is typedef different from int in c language?

They are entirely different things; int is a type, typedef is a way to define types.