Search:

Type: Posts; User: rmsece; Keyword(s):

Search: Search took 0.00 seconds.

  1. Answers
    7
    Views
    10,450

    Re: Circle in linked list

    You can have two pointers p,q pointing to the header node...Inside a while loop you move the second pointer by two nodes and first pointer by one node...if loop exists,definitely the two pointers...
  2. Thread: funtion swap

    by rmsece
    Answers
    9
    Views
    4,287

    Re: funtion swap

    Hi,The second way will not work properly when the variables a or b equal to zero,another one problem is that if "a*b" exceeds integer range, it will give unexpected results.
  3. Thread: funtion swap

    by rmsece
    Answers
    9
    Views
    4,287

    Re: funtion swap

    ya,correct,its for integer variables only...But we dont use temporary varibles explicitly...
  4. Thread: funtion swap

    by rmsece
    Answers
    9
    Views
    4,287

    Re: funtion swap

    fine...you can use a single statement to swap two numbers without the use of temporary variable...

    a^=b^=a^=b

    regards rms...
  5. Answers
    14
    Views
    32,484

    Re: Print 2nd largest value from array

    #include<stdio.h>
    #include<conio.h>
    void main()
    {
    int a[15];
    int i,j,n;
    scanf("&#37;d",&n); /* size of the array */
    for(i=0;i<n;i++)
    scanf("%d",a[i]);
    for(i=0;i<=-1;i++)
Results 1 to 5 of 18
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact