Showing posts with label function. Show all posts
Showing posts with label function. Show all posts

Sunday, August 3, 2014

What does the scrambling code do and function

 

 

Question: What does the scrambling code do and function?

 

Answer: Scrambling Code makes it possible for the UE to distinguish the  transmissions from different cells/NodeBs. Bonus if he knows there are 512 primary scrambling codes and that the are broken up to 64 groups of 8 codes each.

Read More..

Friday, April 4, 2014

malloc swap function program

/*swapping two values through malloc function C program*/
#include<stdio.h>
#include<conio.h>
struct stud
{
 char nam[30];
 struct stud *next;
};
struct stud *p,*q;
int main()
{
 p=(struct stud *)malloc(sizeof(struct stud));
 q=(struct stud *)malloc(sizeof(struct stud));
 printf("Enter name p : ");
 gets(p->nam);
 //fflush(stdin);
 printf("Enter name q : ");
 gets(q->nam);
 p->next=q;
 q->next=p;
 printf("
Name of p : %s"
,p->next->nam);
 printf("
Name of q : %s"
,q->next->nam);

 getch();
 return 0;
}

       Output of above program : 

Enter name p : Peter
Enter name q : Jhon

Name of p : Jhon
Name of q : Peter
Read More..
 
Copyright 2009 Information Blog
Powered By Blogger