Computer Science, asked by shaikhawais150, 2 months ago

1) What will be the output of following program if old address of pointer variable is 62224?

#include<stdio.h>

main()

{

int ptr;

printf("\nthe old address is %u",ptr);

ptr=ptr+3;

printf("\nthe new address after addition is %u",ptr);

getch();

}

a)62222

b)62228

c)62230

d)62224













2)What is the output of following program?
void main()
{
int a=5;
while(a==5)
{
printf(“Hello”);
break;
}
}
a)Hello
b)Hello is printed infinite times
c)Error
d)Blank

Answers

Answered by zainishmaqsood
1

Answer:

its blank or error for some else problem

Similar questions