How will you declare an array (Arr) of four pointers to float?

A

*float Arr[4]

B

(float) Arr[*4]

C

 float *Arr[4]

D

 float *Arr[4]

উত্তরের বিবরণ

img

float Arr[4] হলো এমন একটি ঘোষণাপদ্ধতি যা একটি float টাইপের চারটি পয়েন্টার ধারণকারী অ্যারে নির্দেশ করে। এটি C ভাষার ডিক্লারেশন নিয়ম অনুযায়ী গঠিত, যেখানে “array of X” এবং “function returning X” অংশগুলো “pointer to” ()-এর আগে bind হয়।

মূল বিষয়গুলো হলো:

  • Arr[4] দ্বারা বোঝায় যে Arr হলো চারটি উপাদান বিশিষ্ট একটি অ্যারে

  • *Arr[4] বোঝায় অ্যারের প্রতিটি উপাদান একটি পয়েন্টার

  • float *Arr[4] নির্দেশ করে প্রতিটি পয়েন্টার float টাইপের ডেটার ঠিকানা ধারণ করতে পারে।

অতএব, Arr হলো চারটি float পয়েন্টার নিয়ে গঠিত একটি অ্যারে, যা মেমরিতে চারটি আলাদা float ভেরিয়েবলের ঠিকানা সংরক্ষণে সক্ষম।

Unfavorite

0

Updated: 20 hours ago

Related MCQ

A programmable logic array is mainly used for:

Created: 20 hours ago

A

Custom sequential circuits.

B

Memory.

C

Custom combinational circuits.

D

Fixed logic.

Unfavorite

0

Updated: 20 hours ago

 In the breadth-first search, which of the following should be used?

Created: 20 hours ago

A

Stack 


B

Queue 

C

Heap 


D

Heap 


Unfavorite

0

Updated: 20 hours ago

Which one below declares a function pointer (f) pointing to a function taking an int and a float and returning a double? 

Created: 7 hours ago

A

double *f (int, float)

B

double (*f) (int, float) 

C

(*double) f (int, float)

D

 double f* (int, float)

Unfavorite

0

Updated: 7 hours ago

© LXMCQ, Inc. - All Rights Reserved

Developed by WiztecBD