thanks matsp
Type: Posts; User: krishna
thanks matsp
when i am running this code it is giving different behaviur with scanf("%c",&op) as mentioned in this code
#include<stdio.h>
#include<conio.h>
int main(void)
{
int a,b;
Dear friends,
i want to make a C program which can ping an IP and provide the status whether that device is available or not in the form of some integer value i.e for available give '1' and other...
this is happening because of type promotion in C,
before the shift operation it will convert it to unsigned int than afterword calculation it scale down it in the unsigned or signed char depends on...
hiiiii this can print any base 10 number to any other base upto 16-base..
#include<stdio.h>
static unsigned long int base;
int main(void)
{ unsigned long int num;
printf("Enter the...
what do you want to do in reader() function , it is not clear
first, you are opening the file which is already opend than you are taking integer value in local variable int f , and then updating...
yaa ..we can correct by both way either change in function or change in call declaration
hiiii vart acctualy main problem in the..
printf("%i",result); statement because he/she has define it as 0 in main so it wll always print the same value whatever the value return by the function
check your function declaration ..there should be two argumnets..
int isValid(int *, int);
because you are passing the address of the array not the value..
valid =isValid(values, i);
there was two error in code...
1.Function declaration
2.printf(“%d”,result);----> it should be printf(“%d”,valid);
Try This code....
#include <stdio.h>
#include <stdlib.h>
#define TRUE 1
#define FALSE 0
#define SIZE 5
//prototype
plaese try this..may be due to level of indirection it is creating problem
ratio=(int)comments/(int)statements;
it may help you.....
i ahve tried this simler code it is working fine.......
...
Due to level of indirection it may create problem..
Try this..
ratio=(int) comments/(int) statements;
thanks for this correction
Try this, it may solve your problem ..
if ((fp = fopen("index.html", 'r')) == NULL)
[QUOTE=Elysia;699337]
--- Dangers of scanf and fscanf ---
Thanks Eltsia .. It is great topic for Beginners as well as for Experts .. because we often think it is a easy one to print something on...