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 would the following code segment printint k = 8;docout << "k = " << k << " ";while k++ < 5; a) 13 b) 5 c) 8 d) pointers
Write a program to implement a round robin scheduler and calculate the average waiting time.Arrival time, burst time, time quantum, and no. of processes should be the inputs.
Explain continue keyword in c
What is identifiers in c with examples?
Which is the best website to learn c programming?
What is static and volatile in c?
When would you use a pointer to a function?
Write a program to implement queue.
write a program to copy the string using switch case?
What is a char c?
any C program contains only one function, it must be a) void () b) main () c) message () d) abc ()
What is the argument of a function in c?
Write an algorithm for implementing insertion and deletion operations in a singly linked list using arrays ?
Is void a keyword in c?
Who developed c language?