Search:

Type: Posts; User: rits

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Thread: strlen problem

    by rits
    Replies
    8
    Views
    989

    Have tried putting l=strlen(s);. Did not work out...

    Have tried putting l=strlen(s);. Did not work out :(
  2. Thread: strlen problem

    by rits
    Replies
    8
    Views
    989

    strlen problem

    Guys,

    Have a very simple programme for finding the string length. But whats going wrong here.
    [
    #include<stdio.h>
    #include<string.h>
    #include<conio.h>
    #include<stdlib.h>

    main()
  3. Thread: File in a+ mode

    by rits
    Replies
    9
    Views
    1,377

    ohh sorry it works with ctrl+D. Thanks a lot...

    ohh sorry it works with ctrl+D. Thanks a lot...
  4. Thread: File in a+ mode

    by rits
    Replies
    9
    Views
    1,377

    Hi migf1, There was a problem with permission....

    Hi migf1,

    There was a problem with permission. Now the above code works fine. if i end it with a dot. But when i removed and put EOF check condition it again does not work. The EOF for Linux is...
  5. Thread: File in a+ mode

    by rits
    Replies
    9
    Views
    1,377

    Hi migf1, I have tried it again declaring ch...

    Hi migf1,

    I have tried it again declaring ch as integer. Did not help. I have tried the below code provided by. the file myfile.txt gets created but i open it there is no content. whats going...
  6. Thread: File in a+ mode

    by rits
    Replies
    9
    Views
    1,377

    File in a+ mode

    Hi,

    Please tell why this programme does not work. I have an existing file file.txt. But the content does not get changed.



    #include<stdio.h>
    int main(){
    FILE *fp;
    char ch;
  7. Replies
    7
    Views
    1,171

    help in uderstaning 2D array

    please help me in understanding these code snippets-

    1)


    int main ()
    {
    int a[2][2]={1,2,3,4};
    a[1][0]=*(*(a+1)+1); // how this works??
    a[1][1]=*(*(a+1)+0);
  8. Thread: help required

    by rits
    Replies
    6
    Views
    1,407

    actually the Q has been asked in written test....

    actually the Q has been asked in written test. and there was no option like compiler dependent. Anyway thanks for the reply...
  9. Thread: help required

    by rits
    Replies
    6
    Views
    1,407

    help required

    Please help me in understanding this code snippet-



    main()
    {
    int a=2,*f1,*f2;
    f1=f2=&a;
    *f2+=*f2+=a+=2.5;
    printf("\n%d %d %d",a,*f1,*f2);
  10. Replies
    2
    Views
    778

    Help me to understand the inheritance

    I have this code -



    class A
    {

    public:
    A(int a)
    {
  11. Thread: prime no

    by rits
    Replies
    4
    Views
    1,006

    prime no

    I have to test nos. whether it is prime or not between 1 to 30. What algorithm should i make use of???
  12. Thread: help me

    by rits
    Replies
    8
    Views
    978

    help me

    How to find the value of z here

    Int x = 5, y = 6, Z;
    Z = x + + > (Z = - - Y)? Y + 2: ((x>z) ? x:y);

    and why it prints 18 in the following programme-


    int main()
    {
  13. Replies
    5
    Views
    2,374

    Help me to understand

    can sumone help in understanding this piece of code-



    main()
    {
    int (*functable[2])(char *format, ...) ={printf, scanf};
    int i = 100;
    (*functable[0])("%d", i);
    ...
  14. Replies
    2
    Views
    983

    Opeartor overloading

    Is it possible to overload the operator *+= such that
    obj1 *+= obj2;
    implies that
    obj1=obj1*(obj1+obj2);
  15. Replies
    2
    Views
    866

    no. printing in words

    if i have a no. 895 and i have to print it in words i.e. eight nine five. i can make use of sprintf and get it printed. suppose i need to take user input for the no.and then get it printed in words...
  16. Thread: swapping nibbles

    by rits
    Replies
    2
    Views
    3,018

    swapping nibbles

    What logic shud be used for swapping nibbles in a byte??
  17. Thread: help me

    by rits
    Replies
    4
    Views
    1,346

    I am using turbo C++ IDE. and i included stdio.h

    I am using turbo C++ IDE. and i included stdio.h
  18. Thread: help me

    by rits
    Replies
    4
    Views
    1,346

    help me

    why the hell it prints 72


    int main()
    {
    int i=0;
    i=400*400/400;
    printf("%d",i);
    return(i);
    }
  19. Replies
    1
    Views
    774

    Interchanging the bits

    how can i interchange every 2 bits in a byte like if 10 01 10 01 is input then output shud be 01 10 01 10. Please help me.
  20. Thread: If condition

    by rits
    Replies
    3
    Views
    1,787

    If condition

    How the if condition works here?????????



    void main()
    {
    int i;
    char a[]="\0";
    if(printf("%s\n",a))
    printf("Ok here \n");
  21. Thread: Help

    by rits
    Replies
    3
    Views
    911

    Thanks to both of you especially bithub for the...

    Thanks to both of you especially bithub for the comments...........................
  22. Thread: Help

    by rits
    Replies
    3
    Views
    911

    Help

    Please help me in understanding the following code




    main()
    {
    signed int bit=512, i=5;
    for(;i;i--)
    {
  23. Replies
    7
    Views
    1,941

    colon after a while loop

    hello;

    here is a piece of code-


    main()
    {
    char *p1=“name”;
    char *p2;
    p2=(char*)malloc(20);
  24. Thread: rabbit processor

    by rits
    Replies
    3
    Views
    2,319

    Basically wanted to ask about the use as embedded...

    Basically wanted to ask about the use as embedded processor. I have nt heard about many projects using this. And what will be the future scope....
  25. Thread: rabbit processor

    by rits
    Replies
    3
    Views
    2,319

    rabbit processor

    have anyone worked on rabbit processsor??????? exactly where it is used??? and about future scope????
Results 1 to 25 of 46
Page 1 of 2 1 2