int *p=20;
if u print like dis printf("%d",p);
o\p:- 20; how is it possible?
plz give me the explanation.

Answer Posted / ankit

it will show compiler error as we are trying to assign integer value to pointer variable.

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Q.1 write a program to create binary tree 1 to 16 numbers? Q.2 write a program to creat a binary search tree for the member that is given by user?

2051


Write a function which takes as parameters one regular expression(only ? and * are the special characters) and a string and returns whether the string matched the regular expression.

645


How are pointers declared in c?

592


Where can I get an ansi-compatible lint?

634


Explain what is wrong with this statement? Myname = ?robin?;

990






How do you determine the length of a string value that was stored in a variable?

647


How is null defined in c?

649


What does the && operator do in a program code?

691


How is pointer initialized in c?

579


How do you print an address?

738


Can we change the value of #define in c?

582


Why isn't any of this standardized in c? Any real program has to do some of these things.

621


When should the register modifier be used? Does it really help?

605


what are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values

1255


in programming languages a statement or part of a statement that specifies several different execution sequences a) constructs b) distructs c) executes d) none

595