Difference between for loop and while loop?
Answer / dev yadav
in for loop we should know initial &last condition.....but in while loop we only know the last condition....
ex. of for loop..for(i=0;i<=10;i++){
printf("%d",i);
}
ex. of while loop..while(i<=10){
printf("%d",i);
i++;
}
| Is This Answer Correct ? | 10 Yes | 4 No |
Who developed c language?
What are dangling pointers? How are dangling pointers different from memory leaks?
Write a program to generate random numbers in c?
How do I swap bytes?
Explain this code. #include <stdio.h> void f1(int *k) { *k = *k + 10; } main ( ){ int i; i = 0; printf (" The value of i before call %d \n", i); f1 (&i); printf (" The value of i after call %d \n", i); }
what is the difference between arrays and linked list
26 Answers MAHINDRA, Tech Mahindra, Wipro,
How can I remove the trailing spaces from a string?
What's the difference between calloc() and malloc()?
Meaning of () in c
What is quick sort in c?
Hai what is the different types of versions and their differences
for(i=1;i>0;i++); printf("i=%d",i); what will be the answer????