Thank you for providing the answers.I learned a lot.
Type: Posts; User: coder1
Thank you for providing the answers.I learned a lot.
i corrected my code.now it is :
#include<stdio.h>
struct fullname
{
i know %s dont read after a white spaces.Read what my question is properly please.
File i am reading through fscanf() contains name,address,age and blood_type.
#include<stdio.h>
struct fullname
{
char name[20];
Thank you for the detailed answer.I needed one since i was confused.
hi,
I would just like to know what does
while( (c =getchar())!='\n' && c !=EOF );
do ? and how it do it?
i have see it in a example to clear the input buffer for next input through...
the question is :
Write a program that uses an array of pointers to strings str[ ]. Receive two strings str1 and str2 and check if str1 is embedded in any of the strings in str[ ]. If str1 is...
which compiler is good according to you?suggestions...
I am having problem with comparing first letter of every wordso that i can arrange them in array.What am i doing wrong?(i am new at this)
/*22/10/13 15:30
Arrange set of names in an array...
thank you .it helped.:)
my code :
/*22/10/13 15:30
*/
#include<stdio.h>
int main( )
hi,
i saw this code somewhere but did not get the concept behind it.why the output is nothing?
#include<stdio.h>
int main(void)
{
Thanx :)..was a silly mistake .
I know there is a function for comparing string but i am making it to just improve my concepts.
error : 2 is coming as answer when i put same sting in both place.
#include<stdio.h>
main()...
Thank you for explaining it to me .I understand this function more clearly now. :)
Thank you for putting this much effort for the reply. :) ... you very smartly explained your point :)
Sorry for confusing this square matrix to multiplication one.My multiplication matrix works fine.its code :
#include<stdio.h>
void mult(int [][3],int[][3],int[][3]);
int main( void)
{
I used your memcpy advice :)
new code :
#include<stdio.h>
#include<string.h>
void square(int [][3]);
I am new to the use of memcpy() and trying to understand it . you used :
memcpy(m, x, 9 * sizeof(int));
where m = destination
x = source
9 = size to be copied
Now why you...
Thank you for pointing that b matrix thing.
Doing some modification lets see if i get it right .
Trying to sort matrix such that it has value in ascending order.
But outcome is coming :
Matrix after sorting :
2,2,2,2,
2,2,2,2,
Just the more efficient one than this :)
I have created a program and it works fine.Just wondering if there is a more efficient logic for this program,
My code :
#include<stdio.h>
hi,
I want to create a proper visible table with boundaries that contains boxes and each box receives a value .I don't know where to start from.i have an idea of using matrix for entering values...
Thank you, that explains a lot and my program is working now.
I have one question does that mean rand() will not generate different numbers randomly until srand() is used ?