272 views
0 votes
0 votes
In C language ,declaration of variables is done as follows:

<var type>  <name of var1> , <name of var2>;

For eg:

int a,b;

Then why can’t we use the declaration for pointers as follows to declare 2 interger pointers:

int * a,b;

instead we use : int *a, *b;

?

This might be a silly doubt but please help me out.

Please log in or register to answer this question.

Related questions

235
views
0 answers
0 votes
Chaitanya vommi asked Nov 5, 2017
235 views
255
views
0 answers
0 votes
sukanya naskar asked Aug 31, 2017
255 views
Suppose 7 persons are recruited in a company to do their specific tasks. Each task requires a fixed amount of time to complete and all those tasks are needed to be done...
1.2k
views
1 answers
1 votes
shraddha priya asked May 19, 2019
1,179 views
Implement Linked list using stack.
666
views
0 answers
3 votes
Ayush Upadhyaya asked Jul 30, 2018
666 views
Below is a question I was asked in an InterviewWhat is the best case time complexity to find the height of a Binary Search Tree?I answered it explaining using the below a...