-
-
-
}
">Main(){ int i = 0xff ; printf("n%d", i
A) 1020B) 512C) 4D) 1024
-
}
else
{
printf("OK I am gone.");
}
}
">Main(){ if ((1||0) && (0||1)) { printf("OK I am done."); } else { printf("OK I am gone."); }}
A) none of the aboveB) compile errorC) OK I am goneD) OK I am done
-
-
-
-
-
-
-
-
Decrement operator in C
int a=3,y;
y=++a + a+++ --a+ ++a;
printf("%d%d",y,a);
Why value of y become 16. -
Removing duplicate words from a string
cint main()
{
char arr[1000];
char *temp=NULL;
char *temp1=malloc(100);
int len;
printf("enter the string:
");
gets(arr);
len=strlen(arr);
puts(arr);
printf("len:%d
",len);
temp=strtok(arr," ");
if(temp!=NULL)
strcpy(temp1,temp);
while(temp!=NULL)
{
temp=strtok(NULL,"... -
-
-
-
-
-
How to print all the combinations of a given integer
Suppose i have given like integer 123.....then print like all the combinations 111,112,113,121......up to 333..
-
C Interview Questions
Ans