What is the size of data type long int in Solaris operating system ?
main()
{
f();
f();
f();
}
f()
{
auto int a=1;
a++;
printf("%d",a);
}
main()
{
f();
f();
f();
getch();
}
f()
{
static int a;
printf("%d",a++);
}
Suppose there is two file A.C and B.C
If variable int a is decleared in A.C file as global variable and if wanna use that variable in B.C file then which keyword we have to add before int a .Means what would be the value of ? in following statement.
? int a;
Following statement is true or wrong ?
short a,b,c;
c=a+b;
Following statement is true or wrong for declearing variable a?
long a;
register a;
unsigned a;
short a;
what would be the value of a?
main()
{
const int a=5;
int * const ptr=&a;
*ptr=20;
printf("%d",a);
}
will the following code give error ?
int a;
flaot *ptr=&a;
what would be the output of folloing code?
main()
{
printf("%x"+1,255);
}
what would be the output ?
main()
{
printf(" \\\65 "):
}
what would be the output of code?
main()
{
printf("%s","target"+printf("hi"));
}
what wii be the output of code?
main()
{
scanf("%1d%2d%2d",&a,&b,&c);
// suppose user enter valoe a=12345,b=55,c=560;
printf("%d%d%d,a,b,c);
}
what will be the op?
main()
{
int a=4,b=4,c=9;
if(a>b)
if(a==b)
printf("both are same");
else
printf("how do u feel");
}