Thanks a lot.I got it now.
Type: Posts; User: ankitsinghal_89
Thanks a lot.I got it now.
Guys
Here is my code :-
int main() {
char *p = &"Hello";
printf("%s",p);
}
Here is my code.
While debugging i found out that a segmentation fault error while the third element 6 is added.
#include <stdio.h>
#include <stdlib.h>
struct node {
int data;
if sign extension depends on m/c to m/c or it depends on the data type and accordingly m/c takes the action??
Thanks,i understood it now.
Can you guys explain this also.
If i do something like
int i;
char c;
i = c;
Yeah that's wright. but when i write char c = 234 shouldn't it print the character with ASCII value -22 (which is invalid) on my machine but it is printing the character right character.
But C also support extended ASCII character set.
It works when i write
char c = 234;
printf("%c",c);
even when my machine takes above declaration of char as signed.
Here is one line from C programming language book:
"Whether plain chars are signed or unsigned is machine-dependent, but printable characters are always positive."
My doubt is first of all What...
Guys please help me out with this
I know the basics of C language.Now i want to learn Java..But i want to ask that after learning Java is it difficult to learn C++.
Thx for the advice
i have one more thing to ask which is can java be learned without any difficulty without learning c++..
I have interest in graphical and game programming....
I know basic C(not in deep,you can say simple basics) but now i want to learn C++ or Java.Firstly i want to know if i am taking a good step or not.
Secondly,I want to master atleast one language.....
Thx a lot guys..
#include<stdio.h>
#include<conio.h>
void main()
{
float x[20],fx[20],dd[20][20],z,value,k=1;
int n,i,j;
clrscr();
printf("Enter the no. of interpolating points ");
scanf("%d",&n);
...
thx to all.I have finally cracked it...
How to debug please help!!
After correcting the scanf problem it is still showing the error "Floating point error divide by 0"
#include<stdio.h>
#include<conio.h>
void main()
{
float x[20],fx[20],p[20]={1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0};
int i,n,j;
float a,b;
float z;
...
please help me with sscanf() function detailing with an example..
Also try to help me with this program
#include<stdio.h>
void main()
{
char buffer[50];
int no=97;
Thx for such quick help.I will definately go through the program.
Elysia,Thx for advice.I am seriously considering learning c++.I have learned C but i want to move ahead.But i am not able to...
I have learned basic c now.But i want to move further and i want to create simple games using C.But i am not getting an idea where and how to start.
If you guys can create a program of a sample...