A pointer variable can be
A. | passed to a function as argument |
B. | changed within a function |
C. | returned by a function |
D. | can be assigned an integer value |
Option: C Explanation : Click on Discuss to view users comments. |
Which of the following operators can be applied to pointer variable(s)?
A. | Division |
B. | Multiplication |
C. | Casting |
D. | None of these |
Option: C Explanation : Click on Discuss to view users comments. |
Consider the following program.
main()
{
char x[10], *ptr = x;
scanf("%s", x);
change(&x[4]);
}
change ( char a[ ] )
{
puts(a);
}
If abcdefg is the input, the output will be
A. | abcd |
B. | abc |
C. | efg |
D. | garbage |
Option: C Explanation : Click on Discuss to view users comments. |