how to copy three charaters of a string of strg2[] into strg1[]
Type: Posts; User: Burns111
how to copy three charaters of a string of strg2[] into strg1[]
Whats wrong with this code?
#include <stdio.h>
#include<stdlib.h>
int main()
{
int numslots,x;
int *array;
printf("Enter number of records:");
what does this mean?
char strg1[] = “Engineering Problem Solving:”;
char strg2[] = “fundamental Concepts”, strg3[50];
strncpy(strg3, strg1, strlen(strg1)+1);
/*copy strlen+1...
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...
How to randomize the elements of a array of structures inside a function by keeping each structure unchanged?
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...
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.
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 =...
Problem solved thanks.
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++)
I finally got it right!
#include<stdio.h>
int main()
{
float mark;
int h=0;
int n=0;
char decision;
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...
where should I write h++ and n++?
Question:
Swinburne Sarawak Grading Scheme:
Student mark (0-100) Corresponding grade
85 – 100 “H”
75 – 84 “D”
...