Search:

Type: Posts; User: Burns111

Search: Search took 0.00 seconds.

  1. Replies
    3
    Views
    975

    Exam sample paper problem heeelp

    how to copy three charaters of a string of strg2[] into strg1[]
  2. malloc problem. Giving test a few hours later. Problem in lecture

    Whats wrong with this code?


    #include <stdio.h>
    #include<stdlib.h>
    int main()
    {
    int numslots,x;
    int *array;
    printf("Enter number of records:");
  3. Going to give an exam 6 hours later dont understand a lecture code

    what does this mean?


    char strg1[] = “Engineering Problem Solving:”;
    char strg2[] = “fundamental Concepts”, strg3[50];

    strncpy(strg3, strg1, strlen(strg1)+1);
    /*copy strlen+1...
  4. Thread: Word meaning

    by Burns111
    Replies
    6
    Views
    1,241

    Word meaning

    What does this line translate into english. Its part of a do while loop.Ok let me rephrase the question how to write the stuff after while in such a way that the do loop keeps repeating if
    r1=0 and...
  5. Thread: Structure

    by Burns111
    Replies
    1
    Views
    689

    Structure

    How to randomize the elements of a array of structures inside a function by keeping each structure unchanged?
  6. Randomizing the positions of the elements of an array of structures

    Okay maybe I am being too specific I would like to know if there is any easy way randomize the position of elements in an array. I am studying for a exam which is on the 8th nextmonth. I asked the...
  7. Thread: Randomization

    by Burns111
    Replies
    4
    Views
    1,331

    My exact question is will the line ...

    My exact question is will the line
    srand((unsigned) time(NULL));
    effectively randomize the seed values of all of the variables. Or do i have to write this line again and again.
  8. Thread: Randomization

    by Burns111
    Replies
    4
    Views
    1,331

    Randomization

    Will only p1 be randomized or will all the variables (p1,p2,q1,q2.............) be randomized.


    srand((unsigned) time(NULL));
    p1 = rand%5;
    p2 = rand%5;
    q1 = rand%5;
    q2 =...
  9. Problem solved thanks.

    Problem solved thanks.
  10. Passing two dimensional array to function using pointer

    This code shows error message why?


    #include<stdio.h>
    void love(char *arr[5][5]);
    int main()
    {char arr[5][5];
    int i,j;

    for(i=0;i<5;i++)
  11. I finally got it right! #include...

    I finally got it right!


    #include<stdio.h>
    int main()
    {
    float mark;
    int h=0;
    int n=0;
    char decision;
  12. But in the sample question it is said to ask the...

    But in the sample question it is said to ask the user if it is the last student?. We are supposed to take the marks multiple students. If the total number of H and D exceeds the number of N then good...
  13. where should I write h++ and n++?

    where should I write h++ and n++?
  14. 12 hours later I am giving a c exam need help solving sample question

    Question:
    Swinburne Sarawak Grading Scheme:


    Student mark (0-100) Corresponding grade
    85 – 100 “H”
    75 – 84 “D”
    ...
Results 1 to 14 of 14