below i am trying to print fibonacci series using recursion.
#include<stdio.h>
#include<conio.h>
int fib(int);
int main()
Type: Posts; User: samirself
below i am trying to print fibonacci series using recursion.
#include<stdio.h>
#include<conio.h>
int fib(int);
int main()
trying to add integer values to a tree and printing values in-order.
#include<stdio.h>
#include<stdlib.h>
#include<conio.h>
struct tree{
int info;
struct tree...
hey salem,
friend i am ready put in the effort as required because i want to improve each day.
Thats all i can say. now its upto u if u can help me.
Thanks
Hi everybody,
i was performing some linked list operations,
the code below adds node to the end of the list by using function
add_node().
first i created a node in main() and then the...
dont be angry sir !
this problem is coming with dev c++ but with turbo c++, what could be causing this
const.exe is a another problem giving the same error.
error signature
AppName: const.exe ...
actually while executing it says .exe file has encountered problems and need to close.
the following code which just displays file contents compiles successfully but give runtime error!!
#include <stdio.h>
int main()
{
FILE *fp;
int c ;
the following thing works normal swapping: but
if change function call to
swap(a++,b++);
it dos'nt work why?
#include<stdio.h>
#include<conio.h>
i tried this on Dev-C++
and
error:syntax error before ? token
error:12 no matching function for call to `rotate(__gnu_cxx::__normal_iterator<char*
correct it sir...
but i have declared i as static shd'nt it retain its value, or how to correct it.
the following code does not print anything . why?
#include<iostream.h>
#include<conio.h>
void fn(int);
int main() {
fn(10);
getch();
whenever i start my turbo c++ 3.0 , sometimes its starts beeping.
also, command prompt window is opened( in the background)which contains the output of all programs for time i have worked.
is...
should,nt it print %d itself
yes i got 1192 as the output.
how this works !!
thanx
sam
invoke the compiler with the switch "-ansi"
?????????????????sorry but how?
currently i am using Turbo C++ Version 3.0, salem comments hint that i shd upgrade
so what shd i do...........
i think i am playing with one character at a time..............
and what if main() returns nothing !!
Thantos dear, i wld love to read and accept ur comments
and thank u Salem for replying.
this code just circularly shifts the given string,
n(=4) is the no. of charactars to be shifted
input: sab ulta ho gya
output: gyasab ulta ho
now, can there any refinements !!!!!!!!...
thank u guys, u r great!!!1
thanks for replying
but just tell me
***a+1=3?
i mean which 3 and why??
i just run the following code.
#include<stdio.h>
main( )
{
int a[2][3][2] = {{{2,4},{7,8},{3,4}},{{2,2},{2,3},{3,4}}};
printf("%u %u %u %d \n",a,*a,**a,***a);
printf("%u %u %u %d...
the following code compiles sucsessfully but gives a runtime error!
#include<stdio.h>
#include<conio.h>
main()
{
int i,j,k;
clrscr();
how to initialize 2D array.
following is not a code but just for my concept, plz tell if it is correct
n how
array having x rows n y columns
array=(int **)malloc(x*sizeof(int *)...
plz write it in a corect manner,if possible,
thanks