[c/c++]数组名和指针的区别

/ 9,027评论 / 36142阅读 / 0点赞
#include <iostream>
using namespace std;

int main()
{
	int i = 0;
	int* i_p = &i;
	int arr[10] = {};

	cout << "&i:   " << &i   << endl;
	cout << "i_p:  " << i_p  << endl;
	cout << "&i_p: " << &i_p << endl;
	cout << "arr:  " << arr  << endl;
	cout << "&arr: " << &arr << endl;
	cout << "sizeof(int):  " << sizeof(int) << endl;
	cout << "sizeof(int*): " << sizeof(int*) << endl;
	cout << "sizeof(i_p):  " << sizeof(i_p) << endl;
	cout << "sizeof(arr):  " << sizeof(arr) << endl;
	return 0;
}
  1. Dnrtzdl说道:

    Привет!
    Приобрести документ университета можно у нас.
    ast-diplomas24.ru/kupit-diplom-o-srednem-obrazovanii
    Удачи!

  2. Uazrqnn说道:

    Здравствуйте!
    Купить диплом университета.
    forum-rassvet-rp.ru/index.php?app=gallery&module=gallery&controller=view&id=24

  3. Treffst说道:

    Привет, друзья!
    Приобретение школьного аттестата с официальным упрощенным обучением в Москве
    smol-sport22.ru/index.php?subaction=userinfo&user=ajivus
    Рады оказать помощь!.

  4. Dnrtspb说道:

    Здравствуйте!
    Купить документ института можно у нас в Москве.
    ast-diplomy.com/kupit-diplom-sankt-peterburg
    Успехов в учебе!

  5. Diplomi_ocol说道:

    Здравствуйте!
    Приобрести документ университета можно у нас в Москве.
    diplomyx.com/kupit-diplom-novosibirsk 

  6. Jamesjer说道:

    how to buy generic clomid online: can i buy generic clomid without insurance – can you buy cheap clomid without prescription

  7. DavidFex说道:

    The future football star Shabab Al-Ahly https://dubai.shabab-al-ahli-ar.com was born in Dubai in 2000. From a young age, he showed exceptional football abilities and joined the youth academy of one of the UAE’s leading clubs, Shabab Al-Ahly.

  8. Diplomi_deol说道:

    Здравствуйте!
    Приобрести документ о получении высшего образования можно в нашей компании.
    diplomyx.com/kupit-diplom-s-registraciej 

  9. Lazring说道:

    Добрый день!
    Приобрести диплом любого университета.
    a90275db.beget.tech/2024/07/04/kak-podobrat-proverennyy-magazin-s-ogromnym-katalogom-diplomov.html

  10. You are so awesome! I do not believe I’ve read through something like this before. So nice to discover someone with unique thoughts on this subject matter. Seriously.. thanks for starting this up. This site is one thing that is needed on the web, someone with some originality.

  11. GeorgeViarl说道:

    In the world of football, Atletico Madrid https://spain.atletico-madrid-ar.com has long been considered the second most important club in Spain after the dominant, Real Madrid.

  12. MichaelDrare说道:

    The fascinating story of Ja Morant’s https://spain.atletico-madrid-ar.com meteoric rise, from status from rookie to leader of the Memphis Grizzlies and rising NBA superstar.

  13. JamesUname说道:

    Galatasaray https://turkey.galatasaray-ar.com is one of the most famous football clubs in Turkiye, with a glorious and eventful history.

  14. Dnrtiyk说道:

    Добрый день!
    Купить документ о получении высшего образования можно в нашей компании.
    ast-diplomas.com/kupit-diplom-magistra
    Хорошей учебы!

  15. Diplomi_rbol说道:

    Здравствуйте!
    Приобрести документ о получении высшего образования можно у нас.
    diploms-x.com/kupit-diplom-perm 

  16. Mazrdju说道:

    Добрый день!
    Вопросы и ответы: можно ли быстро купить диплом старого образца?
    http://www.oneartevents.com/купить-диплом-гинеколога/

  17. Jamesjer说道:

    how to get generic clomid without insurance: how to buy generic clomid without rx – can i buy cheap clomid without dr prescription

  18. Jamesjer说道:

    buy paxlovid online: Paxlovid buy online – п»їpaxlovid

  19. Jamesjer说道:

    paxlovid generic: Paxlovid buy online – Paxlovid buy online

  20. Michaelphime说道:

    AC Milan https://italy.milan-ar.com is one of the most successful and decorated football clubs in the world.

  21. ThomasEnawl说道:

    бумажные пакеты на заказ https://salavat-rik.ru

  22. Charlesimify说道:

    Ремонт плоской кровли https://remontiruem-krovly.ru в Москве, цена работы за 1 м?. Прайс лист на работы под ключ, отзывы и фото.

  23. StevenSof说道:

    Thai Company Directory https://thaicorporates.com List of companies and business information.

  24. Trefzfj说道:

    Здравствуйте!
    Как приобрести аттестат о среднем образовании в Москве и других городах
    fitboss.ru/index.php?subaction=userinfo&user=idebixa
    Окажем помощь!.

  25. Lazrwoi说道:

    Привет, друзья!
    Мы изготавливаем дипломы любой профессии по приятным тарифам.
    aacashforcarsmelbourne.com.au/куплю-диплом-через/

  26. ThomasInace说道:

    http://clomiddelivery.pro/# where to buy generic clomid pills

  27. TimothySkymn说道:

    Real Madrid’s https://spain.real-madrid-ar.com history goes back more than a century. The club was founded in 1902 by a group of football enthusiasts led by Juan Padilla

  28. RandallWhirm说道:

    Arsenal https://england.arsenal-ar.com is one of the most famous and successful football clubs in the history of English football.

  29. MichaelLix说道:

    FC Bayern Munich (Munich) https://germany.bayern-munchen-ar.com is one of the most famous and recognized football clubs in Germany and Europe

  30. CarrollSox说道:

    sailing charter Montenegro Budva boat tour

  31. Xazreqf说道:

    Привет, друзья!
    Всё, что нужно знать о покупке аттестата о среднем образовании без рисков
    arusak-diploms-srednee.ru/kupit-diplom-sssr В 

  32. Manrhzp说道:

    Привет!
    Приобрести документ о получении высшего образования
    diplomasx24.ru/kupit-diplom-vracha

  33. essay writer说道:

    I like it when individuals come together and share opinions. Great website, continue the good work.

  34. ThomasInace说道:

    https://clomiddelivery.pro/# can i buy clomid for sale

  35. Jamesjer说道:

    Paxlovid buy online: paxlovid generic – paxlovid pill

  36. Lazrvjc说道:

    Здравствуйте!
    Приобрести диплом университета.
    zdravamir.ru/index.php?option=com_myblog&show=n-n-n-n-on-n-n-n-n-n-.html&Itemid=

  37. ThomasInace说道:

    https://clomiddelivery.pro/# how can i get generic clomid price

  38. Dnrtlnw说道:

    Добрый день!
    Купить документ института вы можете в нашем сервисе.
    diplomasx24.ru/kupit-diplom-voronezh
    Успехов в учебе!

  39. Xazrcyn说道:

    Привет!
    Купить диплом о среднем полном образовании, в чем подвох и как избежать обмана?
    arusak-diploms-srednee.ru/kupit-diplom-kandidata-nauk В 

  40. Dnrtblh说道:

    Здравствуйте!
    Приобрести документ о получении высшего образования можно у нас в Москве.
    ast-diplomas24.ru/kupit-diplom-magistra
    Успешной учебы!

  41. Manrjkw说道:

    Привет, друзья!
    Купить документ о получении высшего образования
    ast-diplomy.com/otzyvy

  42. Lariorepg说道:

    Приобретение диплома ПТУ с сокращенной программой обучения в Москве
    asxdiplomik.com/kupit-diplom-vracha

  43. lehenga说道:

    I would like to thank you for the efforts you have put in penning this website. I’m hoping to check out the same high-grade blog posts by you later on as well. In truth, your creative writing abilities has motivated me to get my very own site now 😉

  44. ThomasInace说道:

    http://amoxildelivery.pro/# amoxicillin 500mg for sale uk

  45. Yrefdqj说道:

    Привет!
    Приобрести диплом любого ВУЗа.
    ls.ruanime.org/2024/06/16/kupite-diplom-i-povyshayte-vashi-shansy-na-karernyy-rost.html
    Удачи!

  46. Jamesjer说道:

    buy doxycycline 200 mg: doxycycline capsule price – doxycycline canadian online pharmacy

  47. Jamesjer说道:

    amoxicillin 500mg capsule cost: amoxicillin 500 mg online – amoxicillin no prescription

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注