main()
{
unsigned char i=0;
for(;i>=0;i++) ;
printf("%d\n",i);
}
Answer / susie
Answer :
infinite loop
Explanation
The difference between the previous question and this
one is that the char is declared to be unsigned. So the i++
can never yield negative value and i>=0 never becomes false
so that it can come out of the for loop.
| Is This Answer Correct ? | 7 Yes | 0 No |
respected sir, i did my MCA in 2013 when i am going to attend to an interview i was asked about my project how will i explain my project could please help me in this and my project title is "Social Networking Site For Social Responsibility"
how to create a 3x3 two dimensional array that will give you the sums on the left and bottom columns
#include<conio.h> main() { int x,y=2,z,a; if(x=y%2) z=2; a=2; printf("%d %d ",z,x); }
Is the following code legal? typedef struct a aType; struct a { int x; aType *b; };
void main() { int c; c=printf("Hello world"); printf("\n%d",c); }
What is the subtle error in the following code segment? void fun(int n, int arr[]) { int *p=0; int i=0; while(i++<n) p = &arr[i]; *p = 0; }
Find your day from your DOB?
15 Answers Accenture, Microsoft,
main(){ unsigned int i; for(i=1;i>-2;i--) printf("c aptitude"); }
why do you use macros? Explain a situation where you had to incorporate macros in your proc report? use a simple instream data example with code ?
main() { char a[4]="HELLO"; printf("%s",a); }
Write a program to check whether the number is prime and also check if it there i n fibonacci series, then return true otherwise return false
main() { char *a = "Hello "; char *b = "World"; clrscr(); printf("%s", strcpy(a,b)); } a. “Hello” b. “Hello World” c. “HelloWorld” d. None of the above
4 Answers Corporate Society, HCL,