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 |
What's wrong with "char *p; *p = malloc(10);"?
for(i=0;i=printf("Hello");i++); printf("Hello"); how many times how will be printed?????????
What language is c written?
Create a structure to specify data on students as given below: Roll number, Name, Department, Course, and Year of joining. Assume that there are not more than 450 students in the collage. (a) Write a function to print the names of all students who joined in the last 3 years. (b) Write a function to print the data of a student whose roll numbers are divisible by 4.
code snippet for creating a pyramids triangle ex 1 2 2 3 3 3
AMMONG THE 4 STROAGE CLASSES IN C, WHICH ONE FASTEST?
two variables are added answer is stored on not for third variable how it is possible?
Explain main function in c?
What are loops c?
f(*p) { p=(char *)malloc(6); p="hello"; return; } main() { char *p="bye"; f(p); printf("%s",p); } what is the o/p?
what are far pointers?
Explain what does the characters 'r' and 'w' mean when writing programs that will make use of files?