Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


main()
{
char *p;
p="Hello";
printf("%c\n",*&*p);
}

Answers were Sorted based on User's Feedback



main() { char *p; p="Hello"; printf("%c\n",*&*p); } ..

Answer / surenda pal singh chouhan

H

Explanation:
* is a dereference operator & is a reference operator.
They can be applied any number of times provided it is
meaningful. Here p points to the first character in the
string "Hello". *p dereferences it and so its value is H.

Is This Answer Correct ?    23 Yes 1 No

main() { char *p; p="Hello"; printf("%c\n",*&*p); } ..

Answer / vignesh1988i

the output will be 'H'...... this is because... first the
variables with pointers as:
*
&
*
p
so it woill process as givwn above in stack

Is This Answer Correct ?    10 Yes 2 No

Post New Answer

More C Interview Questions

i need all types of question paper releted to "c" and other language.

0 Answers  


What is difference between static and global variable in c?

0 Answers  


how is the examination pattern?

0 Answers   Wipro,


what is the difference between exit() and _exit() functions?

2 Answers  


write a addition of two no. program with out using printf,scanf,puts .

4 Answers  


Can we write a program without main() function?

9 Answers  


What are the benefits of organizational structure?

0 Answers  


Define macros.

0 Answers   Tech Mahindra,


Difference between null pointer and dangling pointer?

7 Answers   GE, Wipro,


What is %d called in c?

0 Answers  


Write a program to find minimum between three no.s whithout using comparison operator.

4 Answers   IBM,


Why can’t we compare structures?

0 Answers  


Categories