Is there any difference between the two declarations,
1. int foo(int *arr[]) and
2. int foo(int *arr[2])
Answer / susie
Answer :
No
Explanation:
Functions can only pass pointers and not arrays. The numbers
that are allowed inside the [] is just for more readability.
So there is no difference between the two declarations.
| Is This Answer Correct ? | 1 Yes | 6 No |
What are segment and offset addresses?
code of a program in c language that ask a number and print its decremented and incremented number.. sample output: input number : 3 321123
What is your nationality?
Is the following code legal? struct a { int x; struct a *b; }
main() { char *p = "hello world"; p[0] = 'H'; printf("%s", p); } a. Runtime error. b. “Hello world” c. Compile error d. “hello world”
main() { int i=400,j=300; printf("%d..%d"); }
why nlogn is the lower limit of any sort algorithm?
plz tell me the solution.......... in c language program guess any one number from 1 to 50 and tell that number within 8 asking question in yes or no...............
Write a routine that prints out a 2-D array in spiral order
main() { char *p = “ayqm”; char c; c = ++*p++; printf(“%c”,c); }
main() { int i=5,j=6,z; printf("%d",i+++j); }
how to check whether a linked list is circular.