main()
{
int a;
a=++100;
printf("%d",a);
getch();
}
Answer Posted / 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 |
Post New Answer View All Answers
Why string is used in c?
What is the use of c language in real life?
Want to know how to write a C program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.
a number whose only prime factors are 2,3,5, and 7 is call humble number,,write a program to find and display the nth element in this sequence.. sample input : 2,3,4,11,12,13, and 100.. sample output : the 2nd humble number is 2,the 3rd humble number is 3,the 4th humble number is ,the 11th humble number is 12, the 12th humble number is 14, the 13th humble number is 15, the 100th humble number is 450.
What are linked lists in c?
What are the different types of linkage exist in c?
What type of function is main ()?
Differentiate between ordinary variable and pointer in c.
How do I convert a string to all upper or lower case?
What is the use of linkage in c language?
What are keywords in c with examples?
What is break in c?
Differentiate call by value and call by reference?
What is actual argument?
Write a program to use switch statement.