#include<stdio.h> #define PRODUCT(n) n*n void main() { int a; a=64/PRODUCT(4); printf("%d",a); } On compiling above program my gcc compiler gives OUTPUT: 64Which is wrong output it should be 4 according to definition.Why it is not considering PRODUCT (4) ?(QUESTION: B.TECH FIRST YEAR RCS-101 AKTU 2017-18)
Hey can any one give suitable example that explain bout Pointer of Function , which explain Pointer with UDF ( User Define Function ) alogn with pass by value and pass by reference in a single program.thanking your hope with quick reply
As CBSE has changed the computer science syllabus from C++ to Python, so is C++ still relevant for school students?
alternate to pointers in Cpp
Can you please explain pointers in detail
Whether pointer is defined by its own address or it stores only memory address ?
535 visits
Outline:ପଏଣ୍ଟର୍ସକୁ ବୁଝିବା -ପରିଚୟ -ପଏଣ୍ଟର୍ ର ସିଣ୍ଟାକ୍ସ -ଉଦାହରଣ: int *iptr; -ଡିକ୍ଲାରେଶନ୍ --ଉଦାହରଣ: int a; (ଇଣ୍ଟିଜର୍ a) int *aptr; (ଗୋଟିଏ ଇଣ୍ଟିଜର୍ ପାଇଁ ପଏଣ୍ଟର୍ *aptr) aptr = &a; (aptr, a ର ଆଡ୍ରେସ୍ ସେଟ୍ କରିବା ପାଇଁ) ଆଡ୍ରେସ୍ ପଏଣ୍ଟର୍
ପଏଣ୍ଟର୍ସକୁ ବୁଝିବା -ପରିଚୟ -ପଏଣ୍ଟର୍ ର ସିଣ୍ଟାକ୍ସ -ଉଦାହରଣ: int *iptr; -ଡିକ୍ଲାରେଶନ୍ --ଉଦାହରଣ: int a; (ଇଣ୍ଟିଜର୍ a) int *aptr; (ଗୋଟିଏ ଇଣ୍ଟିଜର୍ ପାଇଁ ପଏଣ୍ଟର୍ *aptr) aptr = &a; (aptr, a ର ଆଡ୍ରେସ୍ ସେଟ୍ କରିବା ପାଇଁ) ଆଡ୍ରେସ୍ ପଏଣ୍ଟର୍
Show video info
Pre-requisite