main()
{
int i,n=010;
int sum=0;
for(i=1;i<=n;i++)
{s=s+i;
}
printf("%d",&s);
getch();
}
Answer Posted / devendra kumar gupta
S is not define
there variable not declare error is occur
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are the uses of a pointer?
GIven a sequence of characters. How will you convert the lower case characters to upper case characters. ( Try using bit vector - sol given in the C lib -> typec.h)
Can we use visual studio for c?
How can I manipulate individual bits?
What does %p mean c?
Why malloc is faster than calloc?
how can f be used for both float and double arguments in printf? Are not they different types?
Write a C program linear.c that creates a sequence of
processes with a given length. By
sequence it is meant that each created process has exactly
one child.
Let's look at some example outputs for the program.
Here the entire process sequence consists of process 18181:
Sara@dell:~/OSSS$ ./linear 1
Creating process sequence of length 1.
18181 begins the sequence.
An example for a sequence of length three:
Sara@dell:~/OSSS$ ./linear 3
Creating process sequence of length 3.
18233 begins the sequence.
18234 is child of 18233
18235 is child of 18234
........ this is coad .... BUt i could not compleate it .....:(
#include
What functions are used for dynamic memory allocation in c language?
What is wrong with this declaration?
What are header files in c programming?
What is a macro in c preprocessor?
How does placing some code lines between the comment symbol help in debugging the code?
Simplify the program segment if X = B then C ← true else C ← false
can any one please explain, how can i access hard disk(physical address)? it is possible by the use of far,near or huge pointer? if yes then please explain......