Function Declaration and Function Pointer in C and Cpp Programming

preview_player
Показать описание
JOIN ME
—————

COMPLETE PLAYLIST
————————————

INTERVIEW PLAYLIST
————————————

QUICK SHORT VIDEOS
————————————-

In this video we will learn what is the difference between function declaration and function pointer in c and cpp programming language.

#cppprogramming #cprogramming #programming
Рекомендации по теме
Комментарии
Автор

Syntax is confusing when typical tutorials don’t explain how every declaration is broken into a specifier (left side) and declarator (right side). I think of the declarator as telling the operations that need to be applied to the identifier (name you are defining) in order to get the type specified by the specifier. Thinking of it this way you just have to remember that * and & in the declarator stand for dereferencing ( not the usual sense of taking the address in the case of & ). Remembering the caveat regarding * and &, declarator syntax simply describes what has to be applied to the identifier to get the type in the specifier. Also, words like const apply right-to-left rather than left-to-right in the declarator.

marshallsweatherhiking
Автор

Thank you.
Why doesn't p need to be assigned the address of the function, and why doesn't it need dereferencing when called, please?

damian_smith
visit shbcf.ru