main()
{
int i=5;
printf("%d",++i++);
}
Answer / susie
Answer :
Compiler error: Lvalue required in function main
Explanation:
++i yields an rvalue. For postfix ++ to operate an lvalue
is required.
Is This Answer Correct ? | 2 Yes | 1 No |
main() { char s[ ]="man"; int i; for(i=0;s[ i ];i++) printf("\n%c%c%c%c",s[ i ],*(s+i),*(i+s),i[s]); }
Write a routine that prints out a 2-D array in spiral order
Write a C function to search a number in the given list of numbers. donot use printf and scanf
write a c program to input initial & final time in the format hh:mm and find the time intervel between them? Ex inputs are initial 06:30 final 00:05 and 23:22 final 22.30
Write a C program to add two numbers before the main function is called.
What is "far" and "near" pointers in "c"...?
Under linux environment can u please provide a c code for computing sum of series 1-2+3-4+5......n terms and -1+2-3+4-5...n terms..
Set up procedure for generating a wire frame display of a polyhedron with the hidden edges of the object drawn with dashed lines
main(){ int a= 0;int b = 20;char x =1;char y =10; if(a,b,x,y) printf("hello"); }
int main() { int x=10; printf("x=%d, count of earlier print=%d", x,printf("x=%d, y=%d",x,--x)); getch(); } ================================================== returns error>> ld returned 1 exit status =================================================== Does it have something to do with printf() inside another printf().
main() { char *p; p="%d\n"; p++; p++; printf(p-2,300); }
Write a program using one dimensional array to assign values and then display it on the screen. Use the formula a[i]=i*10 to assign value to an element.
1 Answers Samar State University,