Elance Exams Answers PDF file

-- PDF FILE --
Download PDF file of elance Zoho Creator Exam Answers

char * array = "Hello"; char array[] = "Hello"; What is the difference between the above two, if any, when using sizeof operator?

The sizeof returns the size of the char type (1) in both cases
The sizeof of an array gives the number of elements in the array, but sizeof of a pointer gives the actual size of a pointer variable
  • Follows us our servcies
  • Facebook icon
  • Linkedin icon
  • twitter icon
  • rss icon
  • social icon