Are both of these correct?
print to the screen the contents of the 7th element of an array of doubles named myArray.
Code:printf("%d", myArray[6]);
populate the 2nd element of an array of doubles named myArray by scanning the input from the keyboard.
Code:scanf("%lf", myArray[2]);