C Programming and Technical Programming Program

#include
int main()
{
void *ptr1, *ptr2;
int x,y;
x = 100;
y = 200;

ptr1 = &x;
ptr2 = &y;

printf("%d", *(int*)ptr1);
printf("n%d", *(int*)ptr2);
}

Read Solution (Total 15)

C Other Question

if(.......)
{
printf("hello");
}
else
{
printf("world");
}
without changing any code just put the condition in if(......) so that the output will be "helloWorld".
through c programming ,take any real number and convert that number into fraction number
EX:input is 1.5
output is 3/2