TCS Company Programming Program

Which of the following is the correct output of the program?
#include
int main()
{
int a[5]={9,10};
printf("%d,%d",a[1],a[2]);
return 0;
}

Read Solution (Total 16)

TCS Other Question


A function can have several declaration, but only one definition?
A. True
B. False
What is the output of following program?
#include
int main()
{
void *ptr1, *ptr2, x;
int y;
x = 100;
y = 200;

ptr1 = &x;
ptr2 = &y;

printf("%d", *ptr1);
pritnf("%d", *ptr2);

return 0;

}