char str[20]="Hello World";

এবং

char *str="Hello World";

দুইটার মধ্যে পার্থক্য কি?

asked 18 May '15, 16:53

Md%20Firoz's gravatar image

Md Firoz
598

retagged 20 May '15, 14:40

Kaiser%20Ahmed's gravatar image

Kaiser Ahmed
3.2k522

1

try to learn code formatting properly.

(18 May '15, 18:37) __salman__ ♦♦

প্রথমটা হচ্ছে অ্যারে, দ্বিতীয়টা হচ্ছে পয়েন্টার। এখানে বিস্তারিত জানা যাবে, https://www.cs.bu.edu/teaching/cpp/string/array-vs-ptr/

permanent link

answered 18 May '15, 19:37

mashnoor's gravatar image

mashnoor
212

thats are same both are point to h,array to point a[0] and pointer is also point a[0] or *a which is h

permanent link

answered 20 May '15, 16:47

Golam%20Kibria%20Sajib's gravatar image

Golam Kibria Sajib
478

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×90
×56
×17

question asked: 18 May '15, 16:53

question was seen: 987 times

last updated: 20 May '15, 16:47