sud8640
BAN USER
Forum Posts (2)
Comments (4)
Reputation 0
Page:
1
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
0
of 0 vote
void pointers can hold address of any type of variables.But when we try to access using void pointer(*c as you mentioned) derefference operator will point to data type of pointer.
so only the error.
example:{{void *c;float size[10];c=&size;
printf("%f",*c);
this printf statement will give u error beacuse of above reason.
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
Page:
1
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.
#include<stdio.h>
- sud8640 February 11, 2014int main()
{
int n;
int num;
int i,j;
printf("\nentre the num:");
scanf("%d",&n);
for(i=1;i<11;i++)
{
for(j=1;j<11;j++)
{
num=i*j;
if(num==n)
{
printf("\n%d%d",i,j);
return ;
}
}
}
return 0;
}