Qualcomm Interview Question

1. char * array = "Hello"; char array[] = "Hello"; what is the difference between the above two, using sizeof operator ? Ans 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 2. how does the linux system know where to look for a particular program when entered in the command line? Ans: Path variable