main()
{
int a;
a=++100;
printf("%d",a);
getch();
}
Answers were Sorted based on User's Feedback
Answer / baji shareef
error. Increment procedure is possible only for the variable. ++100 means 100=100+1 i.e., you are changing the value of constant value which is impossible.
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / khurshid alam
Sorry Error first define a=0; or any value
Is This Answer Correct ? | 0 Yes | 0 No |
How can I change their mode to binary?
a linearly ordered set of data elements that have the same structure and whose order is preserved in storage by using sequential allocation a) circular b) ordinary c) array d) linear list
What is the difference between void main and main in c?
how does the C compiler interpret the following two statements p=p+x; q=q+y; a.p=p+x; q=q+y b.p=p+xq=q+y c.p=p+xq; q=q+y d.p=p+x/q=q+y
.find the output of the following program? char*myfunc(char*ptr) { ptr +=3; return (ptr); } int main() { char*x,*y; x="HELLO"; y=myfunc(x); printf("y = %s ",y); return 0; }
main() { enum{red,green,blue=6,white}; pf("%d%d%d%d", red,green,blue,white); return 0; } a)0 1 6 2 b)0 1 6 7 c)Compilation error d)None of the above
how to find the largest element of array without using relational operater?
How can you tell whether two strings are the same?
What's the difference between DELETE TABLE and TRUNCATE TABLE commands?
#define f(x) main() { printf("\n%d",f(2+2)); }
c program to arrange digits in a no in ascending and descending order
Why are algorithms important in c program?