Question

computers. 1. How many times will this loop repeat? include <stdlib.h> #include <stdio.h> void main(void) int 10 for(= 0; i <
0 0
Add a comment Improve this question Transcribed image text
Answer #1

-10, for loop; from io to iero; 1410 Condition is true for ever if your docrement i, values of i be $ 0,-1,-2, -3, na Ist-min② straight forward loop condition. - zo whilelie = 255). itt, > loop executer All the condition in while becomes false. As we

Add a comment
Know the answer?
Add Answer to:
computers. 1. How many times will this loop repeat? include <stdlib.h> #include <stdio.h> void main(void) int...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • #include <stdio.h> #include <string.h> #include <ctype.h> #include <stdlib.h> int main(void) { /* Type your code here....

    #include <stdio.h> #include <string.h> #include <ctype.h> #include <stdlib.h> int main(void) { /* Type your code here. */ int GetNumOfNonWSCharacters(const char usrStr[]) { int length; int i; int count = 0; char c; length=strlen(usrStr); for (i = 0; i < length; i++) { c=usrStr[i]; if ( c!=' ' ) { count++; } }    return count; } int GetNumOfWords(const char usrStr[]) { int counted = 0; // result // state: const char* it = usrStr; int inword = 0; do switch(*it)...

  • #include<stdio.h> #include <stdlib.h> void read(struct Employee *e); struct Employee { int id; int age; }; int...

    #include<stdio.h> #include <stdlib.h> void read(struct Employee *e); struct Employee { int id; int age; }; int main(){ struct Employee e; read(&e); } void read(struct Employee *e){ int a,b; printf("Enter the id employee\n"); scanf("%d",&a); printf("Enter the age employee\n"); scanf("%d",&b); e->id=a; e->age=b; } Question: Declare a pointer variable of type Employee and place the address of the variable created in the above problem in that pointer variable.

  • 1. Select all that are true for the following code. #include <stdio.h> #include <stdlib.h> void range(int...

    1. Select all that are true for the following code. #include <stdio.h> #include <stdlib.h> void range(int start, int end, int *results) { int length = end - start; results = malloc(sizeof(int) * length); for (int i=start; i<end; i++) { *results = i; results++; } } void printArray(int *arr, int length) { for (int i=0; i<length; i++) { printf("%d ", arr[i]); } } int main() { int *x; int s = 2; int e = 11; range(s, e, x); printArray(x, e...

  • Fix the errors in C code #include <stdio.h> #include <stdlib.h> void insertAt(int *, int); void Delete(int...

    Fix the errors in C code #include <stdio.h> #include <stdlib.h> void insertAt(int *, int); void Delete(int *); void replaceAt(int *, int, int); int isEmpty(int *, int); int isFull(int *, int); void removeAt(int *, int); void printList(int *, int); int main() { int *a; int arraySize=0,l=0,loc=0; int choice; while(1) { printf("\n Main Menu"); printf("\n 1.Create list\n 2.Insert element at particular position\n 3.Delete list.\n4. Remove an element at given position \n 5.Replace an element at given position\n 6. Check the size of...

  • please help, no explanation just need answer #include <stdio.h> #include <stdlib.h> int main(void) { int -x5);...

    please help, no explanation just need answer #include <stdio.h> #include <stdlib.h> int main(void) { int -x5); for (int = 0; i < 5; i++) { x[i] = malloc(sizeof (int) - 5); for (int i = 0; i < 5; i++) { for (int j = 0; j < 5; j++) { x[i][j] = i j ; modify(x, 5, 5); return 0; Which of the implementations of method modify below set all elements of the matrix x to zero? 1. void...

  • PUT INTO PYTHON CODE #include <stdio.h> #include <float.h> int main(void) { float a = 1; float...

    PUT INTO PYTHON CODE #include <stdio.h> #include <float.h> int main(void) { float a = 1; float b = 0.5; float c = a + b; int bits = 0; while (c != a) { bits = bits + 1; b = b / 2; c = a + b; } printf("%d\n",bits); return 0; }

  • Question 3 Predict the output of the following C program: #include <stdio.h> void main() { int...

    Question 3 Predict the output of the following C program: #include <stdio.h> void main() { int i = 0; for(; 1; i++){ printf("%d",i); if(i==7) break; } 12pt Paragraph 1 Β Ι Ο Αν και Ta

  • #include <stdio.h> #include <stdlib.h> #define TOTAL_ROWS 15 int main() { int row, col, numstars=1; int half,...

    #include <stdio.h> #include <stdlib.h> #define TOTAL_ROWS 15 int main() { int row, col, numstars=1; int half, rate = 1; // Loop through each row. for (row=1; row<=TOTAL_ROWS; row++) { half= TOTAL_ROWS/2; // Draw the blanks before the stars for (col=0; col< half + 1 -numstars; col++) printf(" "); // Draw the stars for (col=1; col<= 2*numstars - 1; col++) printf("*"); // If we hit the middle of the diamond, negate the rate. if ((numstars == (half + 1))) rate =...

  • it is a pointer operation and how to fix it? #include <stdio.h> int main(){    int...

    it is a pointer operation and how to fix it? #include <stdio.h> int main(){    int a[10]={2,5,8,1,4,7,3,10,6,9};    int *MaxPtr, *MinPtr;    MaxPtr=&a[0];    MinPtr=&a[0];    for (int i=1;i<10;i++){        if ((*a+i)>*MaxPtr)        {            *MaxPtr=*(a+i);        }    }    for (int c=1;c<10;c++){        if (*(a+c)<*MinPtr)        {            *MinPtr=*(a+c);        }    }    printf("Value of the item MaxPtr pointing at: %d\n",*MaxPtr);    printf("Value of the item MinPtr...

  • #include <stdio.h> #include <stdlib.h> int aaa(); int main() { int ddd,eee = aaa (ddd,eee); printf("new num...

    #include <stdio.h> #include <stdlib.h> int aaa(); int main() { int ddd,eee = aaa (ddd,eee); printf("new num 1 = %d, new num2 = %d.\n", ddd,eee); return 0; } int aaa(int bbb,int ccc) {    bbb = 111;    ccc = 222;    printf("num 1 = %d, num 2 = %d.\n", bbb,ccc);    return bbb ,ccc;   } Output: num 1 = 111, num 2 = 222. new num 1 = 0, new num2 = 222. ************************************************************** I am learning function in C....

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT